RobinHeidenis / bucketlist

Movie, show, and bucket list app to keep track of all the things you still want to watch or do
https://bucketlist.fractum.nl
1 stars 0 forks source link

fix: 🐛 add existing checkedMovies when checking a collection that already has some movies checked off #85

Closed RobinHeidenis closed 9 months ago

RobinHeidenis commented 9 months ago

✅ Closes: BUC-76

linear[bot] commented 9 months ago
BUC-76 Fix unique constraint violation when marking a collection as watched that has a movie in it that has already been marked as watched

Sentry Issue: [BUCKETLIST-B](https://fractum.sentry.io/issues/4447285054/?referrer=Linear) ``` PrismaClientKnownRequestError: Invalid `prisma.checkedMovie.createMany()` invocation: Unique constraint failed on the (not available) File "C:\coding\bucketlist\node_modules\.pnpm\prisma+client5.2.0_prisma5.2.0\node_modules\prisma\client\runtime\library.js", line 123, col 6730, in vn.handleRequestError '{snip} t==="pretty",message:s})),s=this.sanitizeMessage(s),t.code?new K(s,{code:t.code,clientVersion:this.client._clientVersion,meta:t.meta,batchRe {snip} File "C:\coding\bucketlist\node_modules\.pnpm\prisma+client5.2.0_prisma5.2.0\node_modules\prisma\client\runtime\library.js", line 123, col 6119, in vn.handleAndLogRequestError '{snip} ?{data:s,elapsed:o}:s}handleAndLogRequestError(t){try{this.handleRequestError(t)}catch(r){throw this.logEmitter&&this.logEmitter.emit("error {snip} File "C:\coding\bucketlist\node_modules\.pnpm\prisma+client5.2.0_prisma5.2.0\node_modules\prisma\client\runtime\library.js", line 123, col 5839, in vn.request '{snip} let{clientMethod:n,callsite:i,transaction:o,args:s}=t;this.handleAndLogRequestError({error:r,clientMethod:n,callsite:i,transaction:o,args:s} {snip} File "C:\coding\bucketlist\node_modules\.pnpm\prisma+client5.2.0_prisma5.2.0\node_modules\prisma\client\runtime\library.js", line 128, col 9763, in l '{snip} n.transaction!==void 0&&p===!1&&delete y.transaction;let g=await ia(this,y);return y.model?ea({result:g,modelName:y.model,args:y.args,extens {snip} ```

vercel[bot] commented 9 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
bucketlist ✅ Ready (Inspect) Visit Preview Sep 7, 2023 11:10pm