refactor: improve logger for wrong pdf placeholders

This commit is contained in:
Catalin Pit
2026-06-19 13:26:54 +03:00
parent dac262edc9
commit 2396d0d5d0
4 changed files with 24 additions and 5 deletions
@@ -85,7 +85,10 @@ export const UNSAFE_replaceEnvelopeItemPdf = async ({
flattenForm: envelope.type !== 'TEMPLATE',
});
const { cleanedPdf, placeholders } = await extractPdfPlaceholders(normalized);
const { cleanedPdf, placeholders } = await extractPdfPlaceholders(normalized, {
envelopeId: envelope.id,
fileName: data.file.name,
});
// Upload the new PDF and get a new DocumentData record.
const { documentData: newDocumentData, filePageCount } = await putPdfFileServerSide({