chore: add certificate error logs (#1875)

Add certificate logs
This commit is contained in:
David Nguyen
2025-07-03 10:13:12 +10:00
committed by GitHub
parent 8d1d098e3a
commit cdb9b9ee03

View File

@ -117,7 +117,12 @@ export const sealDocument = async ({
? await getCertificatePdf({
documentId,
language: document.documentMeta?.language,
}).catch(() => null)
}).catch((e) => {
console.log('Failed to get certificate PDF');
console.error(e);
return null;
})
: null;
const doc = await PDFDocument.load(pdfData);