mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
🐛 send complete mail before insert
This commit is contained in:
@ -90,7 +90,9 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {
|
|||||||
select: { email: true, name: true },
|
select: { email: true, name: true },
|
||||||
});
|
});
|
||||||
|
|
||||||
if (documentOwner) sendSigningDoneMail(recipient, document, documentOwner);
|
document.document = documentWithSignatureImages;
|
||||||
|
if (documentOwner)
|
||||||
|
await sendSigningDoneMail(recipient, document, documentOwner);
|
||||||
}
|
}
|
||||||
|
|
||||||
return res.status(200).end();
|
return res.status(200).end();
|
||||||
|
|||||||
Reference in New Issue
Block a user