Improve staff application flow with error handling updates, new email address, and code formatting adjustments.

This commit is contained in:
akastijn 2025-09-27 21:13:04 +02:00
parent 311d77fcb2
commit 01dab905d4
3 changed files with 23 additions and 19 deletions

View File

@ -65,8 +65,12 @@ public class ApplicationController implements ApplicationsApi {
log.error("Failed to send staff application {} to Discord", application.id(), e);
return ResponseEntity.internalServerError().build();
}
try {
markAsSent(application.id());
} catch (Exception e) {
log.error("Failed to mark application {} as sent", application.id(), e);
return ResponseEntity.internalServerError().build();
}
FormResponseDto response = buildResponse(application);
return ResponseEntity.status(200).body(response);
}

View File

@ -26,7 +26,7 @@ public class StaffApplicationMail {
@Value("${spring.mail.username}")
private String fromEmail;
private static final String STAFF_APPLICATION_EMAIL = "staff@alttd.com";
private static final String STAFF_APPLICATION_EMAIL = "apply@alttd.com";
/**
* Sends an email with the staff application details to the staff applications team mailbox.