feat: send email when all recipients have signed

This commit is contained in:
Ephraim Atta-Duncan
2023-09-07 20:14:04 +00:00
parent dbbe17a0a8
commit da2033692c
3 changed files with 61 additions and 0 deletions

View File

@ -70,6 +70,7 @@ export const completeDocumentWithToken = async ({
},
});
// TODO: Send email to documents with two or more recipients
await sendPendingEmail({ document, recipient });
const documents = await prisma.document.updateMany({