fix: email attachment formats (#2077)

This commit is contained in:
David Nguyen
2025-10-16 14:16:00 +11:00
committed by GitHub
parent 7f09ba72f4
commit 06cb8b1f23

View File

@ -87,6 +87,7 @@ export const sendCompletedEmail = async ({ id, requestMetadata }: SendDocumentOp
return {
fileName: document.title.endsWith('.pdf') ? document.title : document.title + '.pdf',
content: Buffer.from(file),
contentType: 'application/pdf',
};
}),
);