Skip to content
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

Fix email send response handling #15

Merged
merged 1 commit into from Jun 26, 2023

Conversation

melgu
Copy link
Contributor

@melgu melgu commented Nov 15, 2022

The send(email:) call always throws, even in the success case. This is because the API returns 202 accepted, not 200 ok in the success case.

This is why I've added a check against .accepted. To not break anything else, I've kept the check against .ok, but from my understanding it could be removed.

The API returns 202 accepted, not 200 ok in the success case. To not break anything else, I've kept the check against .ok
@melgu
Copy link
Contributor Author

melgu commented Dec 16, 2022

@Andrewangeta Hi! Can you (or someone else with write access) please have a look at the PR? Thank you 😊

@melgu
Copy link
Contributor Author

melgu commented Jan 27, 2023

Is this project still maintained?

@Andrewangeta Andrewangeta merged commit 9619411 into vapor-community:master Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants