Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: wrong variable used
Marc Seitzae3ed074851e
diff --git a/app/(ee)/api/ai/store/teams/[teamId]/datarooms/[dataroomId]/route.ts b/app/(ee)/api/ai/store/teams/[teamId]/datarooms/[dataroomId]/route.tsindex 32aeb16e..cffacb26 100644--- a/app/(ee)/api/ai/store/teams/[teamId]/datarooms/[dataroomId]/route.ts+++ b/app/(ee)/api/ai/store/teams/[teamId]/datarooms/[dataroomId]/route.ts@@ -158,7 +158,7 @@ export async function POST(// Update document version with file IDawait prisma.documentVersion.update({where: { id: primaryVersion.id },- data: { fileId },+ data: { fileId: newFileId },});fileId = newFileId;