Skip to content

Commit

Permalink
Formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Oct 28, 2024
1 parent 11a53b8 commit bd10f82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/src/main/java/access/api/InvitationController.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ public ResponseEntity<List<Invitation>> all(@Parameter(hidden = true) User user)
Authentication authentication,
HttpServletRequest servletRequest,
HttpServletResponse servletResponse) {
Invitation invitation = invitationRepository.findByHash(acceptInvitation.hash()).orElseThrow(() -> new NotFoundException("Invitation not found"));
Invitation invitation = invitationRepository.findByHash(acceptInvitation.hash())
.orElseThrow(() -> new NotFoundException("Invitation not found"));

if (!invitation.getId().equals(acceptInvitation.invitationId())) {
throw new NotFoundException("Invitation not found");
}
Expand Down

0 comments on commit bd10f82

Please sign in to comment.