🗃️ 💄 insert text in custom font, typeSignature

This commit is contained in:
Timur Ercan
2023-02-20 18:14:52 +01:00
parent 0cda32d197
commit 9e4874bd27
6 changed files with 82 additions and 802 deletions

View File

@ -36,14 +36,19 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {
if (!recipients.length) return res.status(200).end("");
let sentRequests = 0;
recipients.forEach(async (recipient) => {
await sendSigningRequest(recipient, document, user).catch((err) => {
console.log(err);
return res.status(502).end("Coud not send request for signing.");
});
sentRequests++;
if (sentRequests === recipients.length) {
return res.status(200).end();
}
});
return res.status(202).end();
// todo check if recipient has an account and show them in their inbox or something
}