Skip to content

Commit

Permalink
addes @param to isUserParticipatingInEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
Teller501 committed Dec 11, 2023
1 parent dc30f60 commit 859e131
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public interface UserEventDetailsRepository extends JpaRepository<UserEventDetai

Optional<UserEventDetails> findByEventIdAndUserId(Integer eventId, int userId);
@Query("SELECT CASE WHEN COUNT(ued) > 0 THEN true ELSE false END FROM UserEventDetails ued WHERE ued.user.id = :userId AND ued.event.id = :eventId AND ued.participating = true")
boolean isUserParticipatingInEvent(int userId, int eventId);
boolean isUserParticipatingInEvent(@Param("userId") int userId, @Param("eventId") int eventId);

void deleteByUserId(int userId);
}
Expand Down

0 comments on commit 859e131

Please sign in to comment.