Skip to content

Commit

Permalink
fix: rp.id -> rp.baseUser.id 로 JPQL 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
wjddn2165 committed Aug 6, 2024
1 parent 94c485a commit 3564124
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
public interface RushParticipantsRepository extends JpaRepository<RushParticipants, String> {
@Query("SELECT CASE WHEN COUNT(rp) > 0 THEN TRUE ELSE FALSE END " +
"FROM RushParticipants rp " +
"WHERE rp.rushEvent.rushEventId = :eventId AND rp.id = :userId")
"WHERE rp.rushEvent.rushEventId = :eventId AND rp.baseUser.id = :userId")
boolean existsByRushEventIdAndUserId(@Param("eventId") Long eventId, @Param("userId") String userId);
}

0 comments on commit 3564124

Please sign in to comment.