Skip to content

Commit

Permalink
test building
Browse files Browse the repository at this point in the history
  • Loading branch information
gitCarrot committed Sep 6, 2024
1 parent 31e995e commit bcc6f20
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/main/java/edu/hawaii/its/api/controller/OotbRestController.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,19 @@ public OotbRestController(UserContextService userContextService,
this.ootbHttpRequestService = ootbHttpRequestService;
}

@EventListener
public void onApplicationEvent(ContextRefreshedEvent event) {
init();
}

public void init() {
String adminProfile = ootbActiveUserProfileService.findGivenNameForAdminRole();
if (adminProfile != null) {
updateActiveDefaultUser(adminProfile);
} else {
logger.error("Admin profile not found, unable to initiate default API request.");
}
}
// @EventListener
// public void onApplicationEvent(ContextRefreshedEvent event) {
// init();
// }
//
// public void init() {
// String adminProfile = ootbActiveUserProfileService.findGivenNameForAdminRole();
// if (adminProfile != null) {
// updateActiveDefaultUser(adminProfile);
// } else {
// logger.error("Admin profile not found, unable to initiate default API request.");
// }
// }

/*
* Checks to make sure that the API is running and that there are no issues with
Expand Down

0 comments on commit bcc6f20

Please sign in to comment.