Merge pull request #222 from documenso/main

Release 0.9.2
This commit is contained in:
Lucas Smith
2023-07-08 19:10:17 +10:00
committed by GitHub
2 changed files with 14 additions and 4 deletions

View File

@@ -76,6 +76,13 @@ We're currently working on a redesign of the application including a revamp of t
- To contribute please see our [contribution guide](https://github.com/documenso/documenso/blob/main/CONTRIBUTING.md).
## Contact us
Contact us if you are interested in our Enterprise plan for large organizations that need extra flexibility and control.
<a href="https://cal.com/timurercan/enterprise-customers?utm_source=banner&utm_campaign=oss"><img alt="Book us with Cal.com" src="https://cal.com/book-with-cal-dark.svg" /></a>
# Tech
Documenso is built using awesome open source tech including:

View File

@@ -48,11 +48,14 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {
}
let sentRequests = 0;
recipients.forEach(async (recipient) => {
await sendSigningRequest(recipient, document, user);
sentRequests++;
});
await Promise.all(
recipients.map(async (recipient) => {
await sendSigningRequest(recipient, document, user);
sentRequests++;
})
);
if (sentRequests === recipients.length) {
return res.status(200).send(recipients.length);