Skip to content

Commit b101278

Browse files
garusitellHwuanPage
authored andcommitted
fix : ParticipantRepository (#59)
existsByMeetingIdAndUserId 로 수정하였습니다.
1 parent bd2923e commit b101278

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/sevenstar/marineleisure/meeting/validate/ParticipantValidate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public int getParticipantCount(Long meetingId){
3535

3636
@Transactional(readOnly = true)
3737
public void verifyNotAlreadyParticipant(Long meetingId, Long memberId){
38-
if(participantRepository.existsByMeetingIdAndMeetingId(meetingId, memberId)){
38+
if(participantRepository.existsByMeetingIdAndUserId(meetingId, memberId)){
3939
throw new CustomException(ParticipantError.ALREADY_PARTICIPATING);
4040
}
4141
}

0 commit comments

Comments
 (0)