refactor: pass document id as arguments
This commit is contained in:
committed by
Mythie
parent
94215fffbb
commit
f18010e1e1
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user