Merge branch 'main' into fix/doc-status-cc-role

This commit is contained in:
Catalin Pit
2024-04-23 14:26:37 +03:00
committed by GitHub

View File

@@ -80,7 +80,7 @@ export const sendCompletedEmail = async ({ documentId, requestMetadata }: SendDo
text: render(template, { plainText: true }), text: render(template, { plainText: true }),
attachments: [ attachments: [
{ {
filename: document.title, filename: document.title.endsWith('.pdf') ? document.title : document.title + '.pdf',
content: Buffer.from(completedDocument), content: Buffer.from(completedDocument),
}, },
], ],
@@ -130,7 +130,7 @@ export const sendCompletedEmail = async ({ documentId, requestMetadata }: SendDo
text: render(template, { plainText: true }), text: render(template, { plainText: true }),
attachments: [ attachments: [
{ {
filename: document.title, filename: document.title.endsWith('.pdf') ? document.title : document.title + '.pdf',
content: Buffer.from(completedDocument), content: Buffer.from(completedDocument),
}, },
], ],