chore: update filename for bulk recipients

This commit is contained in:
Adithya Krishna
2024-04-18 18:12:08 +05:30
committed by GitHub
parent 96e4797cdd
commit f8ddb0f922

View File

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