Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: send proper dataroom id
Marc Seitzaa827e7ba5db
diff --git a/pages/api/views-dataroom.ts b/pages/api/views-dataroom.tsindex d6996f83..68a6bf5e 100644--- a/pages/api/views-dataroom.ts+++ b/pages/api/views-dataroom.ts@@ -186,11 +186,13 @@ export default async function handle(let dataroomSession: DataroomSession | null = null;if (!isPreview) {- dataroomSession = await verifyDataroomSession(req, linkId, dataroomId);+ dataroomSession = await verifyDataroomSession(+ req,+ linkId,+ link.dataroomId!,+ );}- console.log("dataroomSession", dataroomSession);-let isEmailVerified: boolean = false;let hashedVerificationToken: string | null = null;// If there is no session, then we need to check if the link is protected and enforce the checks