Skip to content

Commit

Permalink
Remove unnecessary check for account request
Browse files Browse the repository at this point in the history
  • Loading branch information
ziqing26 committed Mar 30, 2024
1 parent 18386ed commit c1034ec
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ public JsonResult execute()

taskQueuer.scheduleAccountRequestForSearchIndexing(instructorEmail, instructorInstitution);

if (accountRequest.getRegisteredAt() != null) {
throw new InvalidOperationException("Cannot create account request as instructor has already registered.");
}

assert accountRequest != null;
EmailWrapper adminAlertEmail = sqlEmailGenerator.generateNewAccountRequestAdminAlertEmail(accountRequest);
emailSender.sendEmail(adminAlertEmail);
Expand Down

0 comments on commit c1034ec

Please sign in to comment.