diff --git a/keewe-domain/src/main/java/ccc/keewedomain/persistence/repository/challenge/ChallengeParticipationQueryRepository.java b/keewe-domain/src/main/java/ccc/keewedomain/persistence/repository/challenge/ChallengeParticipationQueryRepository.java index 4b29cfc7..46d11af2 100644 --- a/keewe-domain/src/main/java/ccc/keewedomain/persistence/repository/challenge/ChallengeParticipationQueryRepository.java +++ b/keewe-domain/src/main/java/ccc/keewedomain/persistence/repository/challenge/ChallengeParticipationQueryRepository.java @@ -40,7 +40,7 @@ public class ChallengeParticipationQueryRepository { public boolean existsByChallengerIdAndStatus(Long challengerId, ChallengeParticipationStatus status) { Integer fetchFirst = queryFactory.selectOne() .from(challengeParticipation) - .where(user.id.eq(challengerId).and(challengeParticipation.status.eq(status))) + .where(challengeParticipation.challenger.id.eq(challengerId).and(challengeParticipation.status.eq(status))) .fetchFirst(); return fetchFirst != null;