From eabfb4935d165936ea6f1c96ac1d4a3dc5824abc Mon Sep 17 00:00:00 2001 From: Randall Stillwell Date: Wed, 11 Mar 2026 11:49:33 -0500 Subject: [PATCH] Fix nullable Json field in reprocess and Prisma import path Use Prisma.DbNull instead of null for the cardIds Json? field, and correct the generated client import path. Made-with: Cursor --- src/lib/ocr.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/ocr.ts b/src/lib/ocr.ts index 3fc9532..0354569 100644 --- a/src/lib/ocr.ts +++ b/src/lib/ocr.ts @@ -1,4 +1,5 @@ import { prisma } from "./db"; +import { Prisma } from "@/generated/prisma/client"; import { uploadBuffer, getBuffer, deleteObject } from "./minio"; import { ocrImage } from "./ai-ocr"; import { pdfToImages, imageToBase64, processUploadedImage } from "./pdf"; @@ -266,7 +267,7 @@ export async function reprocessJob(jobId: string): Promise { await prisma.processingJob.update({ where: { id: jobId }, - data: { status: "queued", processed: 0, error: null, cardIds: null }, + data: { status: "queued", processed: 0, error: null, cardIds: Prisma.DbNull }, }); await processFile(jobId, job.fileName, fileBuffer, isPdf);