Skip to content

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.ts
index 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 ID
await prisma.documentVersion.update({
where: { id: primaryVersion.id },
- data: { fileId },
+ data: { fileId: newFileId },
});
fileId = newFileId;