fix: fitler only unsigned documents

This commit is contained in:
Ephraim Atta-Duncan
2023-09-17 14:38:39 +00:00
parent 6f4c280583
commit 776324c875

View File

@ -73,6 +73,9 @@ export const completeDocumentWithToken = async ({
const numberOfRecipients = await prisma.recipient.count({
where: {
documentId: document.id,
signingStatus: {
not: SigningStatus.SIGNED,
},
},
});