Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsh-Srivastav123 committed Mar 22, 2024
1 parent 7357a94 commit 42d6cee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public SessionDTO getSessionDetails(Integer sessionId) {
// return sessionDAO.findAll().stream().map(object -> modelMapper.map(object, SessionDTO.class)).collect(Collectors.toList());
// }
//Collections.singletonList(sessionDAO.findById(Integer.parseInt(sessionId)).get());
if (sessionDAO.existsById(sessionId)) {
if (!sessionDAO.existsById(sessionId)) {
//throw exception
throw new CustomException("Unable to find sessionDetails check the sessionId carefully");
}
Expand Down

0 comments on commit 42d6cee

Please sign in to comment.