From 36232c7817e80073bb366309819c2b647da94a8b Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Wed, 28 Jun 2023 19:53:39 +0200 Subject: [PATCH 1/2] added new cal.com badge for booking link --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) 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: From 6c78332258ebf8e9af296f88e9bbbb2623d711d5 Mon Sep 17 00:00:00 2001 From: Mythie Date: Sat, 8 Jul 2023 18:52:13 +1000 Subject: [PATCH 2/2] fix: await signing requests --- apps/web/pages/api/documents/[id]/send.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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);