feat: include audit logs

This commit is contained in:
Catalin Pit
2025-02-14 14:03:39 +02:00
parent 8b1b0de935
commit 080bb405f0
3 changed files with 52 additions and 14 deletions

View File

@ -118,9 +118,10 @@ export const sealDocument = async ({
}).catch(() => null)
: null;
const auditLogData = await getAuditLogsPdf({ documentId }).catch(() => null);
console.log({ auditLogData });
const auditLogData = await getAuditLogsPdf({
documentId,
language: document.documentMeta?.language,
}).catch(() => null);
const doc = await PDFDocument.load(pdfData);