refactor: pass document id as arguments

This commit is contained in:
Ephraim Atta-Duncan
2023-09-07 20:38:18 +00:00
committed by Mythie
parent 94215fffbb
commit f18010e1e1
2 changed files with 33 additions and 5 deletions

View File

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