Skip to content

Commit

Permalink
fix: 회원 탈퇴 api 외래키 조건 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
daeunkwak committed Aug 26, 2023
1 parent 1f8185b commit e06c9a8
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,17 +329,17 @@ public void signOut(Long memberId) {
certifyLikeRepository.deleteAll(member.getCertifyLikes());

// 피드 삭제
for(Participate participate : member.getParticipates()){

for(Certify certify : participate.getCertifies()){
log.info("certifyID :::::: "+ certify.getCertifyId());
certifyImageRepository.deleteAll(certify.getCertifyImageList());
}
certifyRepository.deleteAll(participate.getCertifies());
}
// for(Participate participate : member.getParticipates()){
//
// for(Certify certify : participate.getCertifies()){
// log.info("certifyID :::::: "+ certify.getCertifyId());
// certifyImageRepository.deleteAll(certify.getCertifyImageList());
// }
// certifyRepository.deleteAll(participate.getCertifies());
// }

// 참여 챌린지 기록 삭제
participateRepository.deleteAll(member.getParticipates());
//participateRepository.deleteAll(member.getParticipates());

// member isDeleted 업데이트
member.updateIsDeleted();
Expand Down

0 comments on commit e06c9a8

Please sign in to comment.