Skip to content

Commit

Permalink
fix(admissions): change clear and email order
Browse files Browse the repository at this point in the history
We were removing intervwers before sending the email, meaning
there were no recipients by the time we actually sent the email
  • Loading branch information
alexaor committed Aug 27, 2024
1 parent f0f091b commit 1ec0a57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admissions/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -1986,10 +1986,10 @@ def mutate(self, info, applicant_id, interview_id, *args, **kwargs):
applicant.save()

send_new_interview_mail(applicant)
interview.interviewers.clear()
notify_interviewers_applicant_has_been_moved_to_another_interview_email(
applicant, interview
)
interview.interviewers.clear()

return AssignApplicantNewInterviewMutation(success=True)

Expand Down

0 comments on commit 1ec0a57

Please sign in to comment.