implemented async using queue data structure
What does this PR do?
Fixes #8345
This PR implements a queue data structure to sequentially process each credential rather than using Promise.all. However the logic is kept same for sendDisabledAppEmail process.
Environment: Staging(main branch) / Production
Type of change
- Chore (refactoring code, technical debt, workflow improvements)
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| ui | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 8, 2023 5:44pm |
@ManVTish is attempting to deploy a commit to the cal Team on Vercel.
A member of the Team first needs to authorize it.
📦 Next.js Bundle Analysis for @calcom/web
This analysis was generated by the Next.js Bundle Analysis action. 🤖
This PR introduced no changes to the JavaScript bundle! 🙌
Thanks for this @ManVTish - however the comment was a bit vague on what should be made async. the async bit is talking about queueing emails rather than the call to the email. Sorry about the confusion, this logic should remain promise.all but the email system in entirety should be async.