resolved conflicts while sync with master

This commit is contained in:
rajesh
2024-11-11 20:03:29 +05:30
7 changed files with 74 additions and 31 deletions

View File

@@ -151,6 +151,11 @@ public class Validator {
String[] activeProfiles = environment.getActiveProfiles();
return Arrays.stream(activeProfiles).anyMatch("production"::equals);
}
public Boolean isTestProfileActivated() {
String[] activeProfiles = environment.getActiveProfiles();
return Arrays.stream(activeProfiles).anyMatch("test"::equals);
}
public UserEntity validatePreInstructor(HttpServletRequest request, Long preInstructorUserId) {
UserEntity preInstructorUser = userService.validateUser(preInstructorUserId);