mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
@ -117,7 +117,12 @@ export const sealDocument = async ({
|
|||||||
? await getCertificatePdf({
|
? await getCertificatePdf({
|
||||||
documentId,
|
documentId,
|
||||||
language: document.documentMeta?.language,
|
language: document.documentMeta?.language,
|
||||||
}).catch(() => null)
|
}).catch((e) => {
|
||||||
|
console.log('Failed to get certificate PDF');
|
||||||
|
console.error(e);
|
||||||
|
|
||||||
|
return null;
|
||||||
|
})
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
const doc = await PDFDocument.load(pdfData);
|
const doc = await PDFDocument.load(pdfData);
|
||||||
|
|||||||
Reference in New Issue
Block a user