Skip to content

Commit afd564a

Browse files
gunwoong1630HwuanPage
authored andcommitted
hotfix: error fix
1 parent 2cbdc8c commit afd564a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/sevenstar/marineleisure/meeting/repository/ParticipantRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ public interface ParticipantRepository extends JpaRepository<Participant, Long>
2323

2424
boolean existsByUserId(Long userId);
2525

26-
boolean existsByMeetingIdAndMemberId(Long meetingId, Long memberId);
26+
boolean existsByMeetingIdAndMeetingId(Long meetingId, Long memberId);
2727
}

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.existsByMeetingIdAndMemberId(meetingId, memberId)){
38+
if(participantRepository.existsByMeetingIdAndMeetingId(meetingId, memberId)){
3939
throw new CustomException(ParticipantError.ALREADY_PARTICIPATING);
4040
}
4141
}

0 commit comments

Comments
 (0)