chore: use correct link for qrcode

This commit is contained in:
Ephraim Atta-Duncan
2025-01-30 10:17:59 +00:00
parent d82a759acd
commit 6743a108c0
2 changed files with 4 additions and 1 deletions

View File

@ -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
<div
className="flex h-24 w-24 justify-center"
dangerouslySetInnerHTML={{
__html: renderSVG(`${WEBAPP_BASE_URL}/documents/${documentId}`, {
__html: renderSVG(`${WEBAPP_BASE_URL}/q/${documentAccessToken}`, {
ecc: 'Q',
}),
}}

View File

@ -11,6 +11,7 @@ export const getEntireDocument = async ({ id }: GetEntireDocumentOptions) => {
},
include: {
documentMeta: true,
documentAccessToken: true,
User: {
select: {
id: true,