Files
vfxreview/app/api
twotalesanimation 27f9f7ac64
Deploy / deploy (push) Successful in 3m16s
fix(api): shot API 500 once a version has a ProRes size
Version.highResSize (added in 9660cdc) is a BigInt, and GET
/api/shots/[shotId] spreads whole version rows into NextResponse.json,
converting only fileSize. As soon as worker 1.7.0 finalized an export
with a ProRes upload, JSON.stringify threw "Do not know how to serialize
a BigInt" and the shot page failed to load.

- Convert highResSize alongside fileSize in that route.
- lib/db.ts: serialize any BigInt as a string in JSON (BigInt.prototype
  .toJSON), so other routes returning whole rows can't 500 the same way.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 17:23:03 +02:00
..
2026-05-19 22:20:29 +02:00
2026-05-19 22:20:29 +02:00
2026-07-08 16:03:57 +02:00
2026-07-08 16:28:18 +02:00
2026-07-29 07:24:57 +02:00
2026-06-19 13:25:19 +02:00
2026-07-16 21:58:06 +02:00
2026-05-19 22:20:29 +02:00
2026-07-29 07:46:00 +02:00
2026-05-19 22:20:29 +02:00