mirror of
https://github.com/documenso/documenso.git
synced 2025-11-20 11:41:44 +10:00
chore: use correct link for qrcode
This commit is contained in:
@ -73,6 +73,8 @@ export default async function SigningCertificate({ searchParams }: SigningCertif
|
|||||||
id: documentId,
|
id: documentId,
|
||||||
}).catch(() => null);
|
}).catch(() => null);
|
||||||
|
|
||||||
|
const documentAccessToken = document?.documentAccessToken?.token;
|
||||||
|
|
||||||
if (!document) {
|
if (!document) {
|
||||||
return redirect('/');
|
return redirect('/');
|
||||||
}
|
}
|
||||||
@ -308,7 +310,7 @@ export default async function SigningCertificate({ searchParams }: SigningCertif
|
|||||||
<div
|
<div
|
||||||
className="flex h-24 w-24 justify-center"
|
className="flex h-24 w-24 justify-center"
|
||||||
dangerouslySetInnerHTML={{
|
dangerouslySetInnerHTML={{
|
||||||
__html: renderSVG(`${WEBAPP_BASE_URL}/documents/${documentId}`, {
|
__html: renderSVG(`${WEBAPP_BASE_URL}/q/${documentAccessToken}`, {
|
||||||
ecc: 'Q',
|
ecc: 'Q',
|
||||||
}),
|
}),
|
||||||
}}
|
}}
|
||||||
|
|||||||
@ -11,6 +11,7 @@ export const getEntireDocument = async ({ id }: GetEntireDocumentOptions) => {
|
|||||||
},
|
},
|
||||||
include: {
|
include: {
|
||||||
documentMeta: true,
|
documentMeta: true,
|
||||||
|
documentAccessToken: true,
|
||||||
User: {
|
User: {
|
||||||
select: {
|
select: {
|
||||||
id: true,
|
id: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user