Skip to content

Commit b290ec0

Browse files
fix: make email handler async and return response immediately to avoid timeout (#373)
## What does this PR do? Mailbridge email handler waited syncronously to process emails in the new version, it lead yo timeouts. Now it returns response immediately and handles the email in backgorund <!-- If there isn't an issue for this PR, please re-review our Contributing Guide and create an issue --> ## Type of change <!-- Please mark the relevant points by using [x] --> - [x] Bug fix (non-breaking change which fixes an issue) - [ ] Chore (refactoring code, technical debt, workflow improvements) - [ ] Enhancement (small improvements) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update ## Checklist <!-- We're starting to get more and more contributions. Please help us making this efficient for all of us and go through this checklist. Please tick off what you did --> ### Required - [ ] Read [Contributing Guide](https://github.com/un/inbox/blob/main/CONTRIBUTING.md) - [ ] Self-reviewed my own code - [ ] Tested my code in a local environment - [ ] Commented on my code in hard-to-understand areas - [ ] Checked for warnings, there are none - [ ] Removed all `console.logs` - [ ] Merged the latest changes from main onto my branch with `git pull origin main` - [ ] My changes don't cause any responsiveness issues ### Appreciated - [ ] If a UI change was made: Added a screen recording or screenshots to this PR - [ ] Updated the UnInbox Docs if changes were necessary
1 parent e4de004 commit b290ec0

File tree

1 file changed

+702
-698
lines changed

1 file changed

+702
-698
lines changed

0 commit comments

Comments
 (0)