We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd2923e commit b101278Copy full SHA for b101278
src/main/java/sevenstar/marineleisure/meeting/validate/ParticipantValidate.java
@@ -35,7 +35,7 @@ public int getParticipantCount(Long meetingId){
35
36
@Transactional(readOnly = true)
37
public void verifyNotAlreadyParticipant(Long meetingId, Long memberId){
38
- if(participantRepository.existsByMeetingIdAndMeetingId(meetingId, memberId)){
+ if(participantRepository.existsByMeetingIdAndUserId(meetingId, memberId)){
39
throw new CustomException(ParticipantError.ALREADY_PARTICIPATING);
40
}
41
0 commit comments