diff --git a/README.md b/README.md index 97ebe6555..a2600e46c 100644 --- a/README.md +++ b/README.md @@ -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. + +Book us with Cal.com + # Tech Documenso is built using awesome open source tech including: diff --git a/apps/web/pages/api/documents/[id]/send.ts b/apps/web/pages/api/documents/[id]/send.ts index ea3e91adc..b038fcc1e 100644 --- a/apps/web/pages/api/documents/[id]/send.ts +++ b/apps/web/pages/api/documents/[id]/send.ts @@ -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);