Closed RobinHeidenis closed 9 months ago
Sentry Issue: [BUCKETLIST-1E](https://fractum.sentry.io/issues/4489682085/?referrer=Linear)
```
Error: remote source rejected with status code 404
File "/var/task/node_modules/.pnpm/napi-rs+canvas0.1.44/node_modules/napi-rs/canvas/load-image.js", line 69, col 23, in ClientRequest.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
bucketlist | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 2, 2023 10:46pm |
Refactored import declarations
Refactored code in various server files to use propOrUnknown
utility function which normalizes how unknown properties are handled, making the results more predictable and reliable.
Introduced new types
Implemented new TRPCContext
type in trpc.ts
. This change will unify context handling across the codebase and improve readability.
Updated imports
Updated the import statements in tmdbApi.ts
and checkIfExistsAndAccess.ts
to align with the newly introduced TRPCContext
type.
Added utility types and functions
Created a new utility type Nullable
, simplifying how we handle values that may be null
, undefined
, or of type T
.
Also, added a new utility function propOrUnknown
that will return 'Unknown' for null or undefined input which ensures consistency when dealing with uncertain property values.
✅ Closes: BUC-90