layout, remove debug send

This commit is contained in:
Timur Ercan
2023-01-30 19:21:48 +01:00
parent f740522782
commit fda4aacf39
3 changed files with 13 additions and 6 deletions

View File

@ -42,14 +42,13 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {
const recipients = prisma.recipient.findMany({
where: {
documentId: +documentId,
// sendStatus: SendStatus.NOT_SENT, // TODO REDO AFTER DEBUG
sendStatus: SendStatus.NOT_SENT, // TODO REDO AFTER DEBUG
},
});
// todo check if recipient has an account and show them in their inbox or something
(await recipients).forEach(async (recipient) => {
await sendSigningRequest(recipient, document);
await sendSignedMail(recipient, document);
});
// todo way better error handling