From 6743a108c0c5b5ffa1e63c167cb1723b5d6df935 Mon Sep 17 00:00:00 2001 From: Ephraim Atta-Duncan Date: Thu, 30 Jan 2025 10:17:59 +0000 Subject: [PATCH] chore: use correct link for qrcode --- .../src/app/(internal)/%5F%5Fhtmltopdf/certificate/page.tsx | 4 +++- packages/lib/server-only/admin/get-entire-document.ts | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/web/src/app/(internal)/%5F%5Fhtmltopdf/certificate/page.tsx b/apps/web/src/app/(internal)/%5F%5Fhtmltopdf/certificate/page.tsx index 110b0413b..bb47e1708 100644 --- a/apps/web/src/app/(internal)/%5F%5Fhtmltopdf/certificate/page.tsx +++ b/apps/web/src/app/(internal)/%5F%5Fhtmltopdf/certificate/page.tsx @@ -73,6 +73,8 @@ export default async function SigningCertificate({ searchParams }: SigningCertif id: documentId, }).catch(() => null); + const documentAccessToken = document?.documentAccessToken?.token; + if (!document) { return redirect('/'); } @@ -308,7 +310,7 @@ export default async function SigningCertificate({ searchParams }: SigningCertif
{ }, include: { documentMeta: true, + documentAccessToken: true, User: { select: { id: true,