-
-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
patch: send email async #71
patch: send email async #71
Conversation
PR Description updated to latest commit (728256d) |
@rajdip-b Please Review |
PR Analysis
PR Feedback💡 General suggestions: It's great that you've identified the need to make email sending operations asynchronous. This should improve the application's performance and responsiveness. However, it would be beneficial to add error handling for these asynchronous operations to ensure that any failures are properly handled and logged. 🤖 Code feedback:
✨ Usage tips:
|
🎉 This PR is included in version 1.0.0-alpha.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Type
bug_fix
Description
This PR addresses a bug related to the email sending operations in the application. Previously, these operations were performed synchronously, which could potentially block the execution of the application. The changes in this PR make these operations asynchronous, improving the application's performance and responsiveness. The affected operations include:
PR changes walkthrough
2 files
auth.service.ts
apps/api/src/auth/service/auth.service.ts
The
await
keyword was removed from thethis.resend.sendOtp(email, otp.code)
call, making the OTPsending operation asynchronous.
mail.service.ts
apps/api/src/mail/services/mail.service.ts
The
await
keyword was removed from multiplethis.sendEmail(email, subject, body)
calls, making theemail sending operations asynchronous.
User description
Description
Remove await to send all the email async
Fixes #63
Dependencies
Mention any dependencies/packages used
Future Improvements
Mention any improvements to be done in future related to any file/feature
Mentions
@rajdip-b
Screenshots of relevant screens
Add screenshots of relevant screens
Developer's checklist
If changes are made in the code:
Documentation Update