Skip to content

Commit 501c353

Browse files
authored
Merge pull request #1498 from mfts/marc/pm-50-dataroom-documents-should-link-out-to-separate-tab
fix: send proper dataroom id
2 parents c98e3a2 + aa827e7 commit 501c353

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pages/api/views-dataroom.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,13 @@ export default async function handle(
186186

187187
let dataroomSession: DataroomSession | null = null;
188188
if (!isPreview) {
189-
dataroomSession = await verifyDataroomSession(req, linkId, dataroomId);
189+
dataroomSession = await verifyDataroomSession(
190+
req,
191+
linkId,
192+
link.dataroomId!,
193+
);
190194
}
191195

192-
console.log("dataroomSession", dataroomSession);
193-
194196
let isEmailVerified: boolean = false;
195197
let hashedVerificationToken: string | null = null;
196198
// If there is no session, then we need to check if the link is protected and enforce the checks

0 commit comments

Comments
 (0)