feat: avoid sending pending email to document with 1 recipients

This commit is contained in:
Ephraim Atta-Duncan
2023-09-07 20:52:18 +00:00
parent 863e53a2d5
commit 525ff21563
2 changed files with 10 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ export const sendCompletedEmail = async ({ documentId }: SendDocumentOptions) =>
name: process.env.NEXT_PRIVATE_SMTP_FROM_NAME || 'Documenso',
address: process.env.NEXT_PRIVATE_SMTP_FROM_ADDRESS || 'noreply@documenso.com',
},
subject: 'Everyone has signed!',
subject: 'Signing Complete!',
html: render(template),
text: render(template, { plainText: true }),
});