fix: minor updates

This commit is contained in:
Lucas Smith
2023-09-22 23:22:48 +10:00
committed by GitHub
parent 2c90f767fd
commit 0d130b17c8
3 changed files with 7 additions and 7 deletions

View File

@ -70,7 +70,7 @@ export const completeDocumentWithToken = async ({
},
});
const numberOfRecipients = await prisma.recipient.count({
const pendingRecipients = await prisma.recipient.count({
where: {
documentId: document.id,
signingStatus: {
@ -79,7 +79,7 @@ export const completeDocumentWithToken = async ({
},
});
if (numberOfRecipients > 1) {
if (pendingRecipients > 0) {
await sendPendingEmail({ documentId, recipientId: recipient.id });
}