Skip to content

Commit 944b62f

Browse files
garusitellHwuanPage
authored andcommitted
fix : ParticipantRepository (#60)
memberId -> userId로 수정하였습니다.
1 parent b101278 commit 944b62f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public interface ParticipantRepository extends JpaRepository<Participant, Long>
2323

2424
boolean existsByUserId(Long userId);
2525

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

28-
List<Participant> findByMemberId(Long memberId);
28+
List<Participant> findByUserId(Long memberId);
2929
}

src/main/java/sevenstar/marineleisure/member/service/MemberService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public void deleteMember(Long memberId) {
182182
}
183183

184184
// 2. 회원이 게스트인 경우 참가자 목록에서 삭제
185-
List<Participant> participations = participantRepository.findByMemberId(memberId);
185+
List<Participant> participations = participantRepository.findByUserId(memberId);
186186
if (!participations.isEmpty()) {
187187
log.info("참가자 목록에서 삭제: memberId={}, participationCount={}", memberId, participations.size());
188188
participantRepository.deleteAll(participations);

0 commit comments

Comments
 (0)