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

feat: email for onboarding and offboarding team mems #147

Merged
merged 2 commits into from
Dec 20, 2023

Conversation

NithinKuruba
Copy link
Contributor

Fixes SSOTEAM-1205

@NithinKuruba NithinKuruba added the enhancement New feature or request label Dec 20, 2023
Copy link
Contributor

@jlangy jlangy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, just left one comment that can optionally be changed

currentRequest.technicalContactEmail !== updateRequest.technicalContactEmail
) {
typeOfContactUpdate = 'Technical Contact';
onboardNewRealmAdmin(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had a strange issue earlier where if I wasn't awaiting promises, they would be flaky on whether they actually settled. I think related to this thread: vercel/next.js#14077, if it doesn't complete fast enough it might get skipped. It would be nice to not wait for this to resolve before sending a response but might be necessary

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jlangy yes agreed, the sendEmail function does return promise so it's good to await for them before delivering the response and in this way we can ensure the emails do get delivered. I have added async awaits for all the email. Can you please take a look tomorrow morning.

@NithinKuruba NithinKuruba merged commit 7eec29d into dev Dec 20, 2023
4 checks passed
@NithinKuruba NithinKuruba deleted the feat/SSOTEAM-1205 branch December 20, 2023 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants