Skip to content

Commit

Permalink
fix: 삭제할 회원 엔티티가 영속되지 않았으므로 수동적으로 save() 메소드 호출
Browse files Browse the repository at this point in the history
  • Loading branch information
bflykky committed Aug 16, 2024
1 parent 7667140 commit fb04aee
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ public Member deleteMember(Member member) {
// 회원 샘플 사진 삭제
photoService.deleteSamplePhotoList(member);
member.delete();
memberRepository.save(member);
return member;
}
}

0 comments on commit fb04aee

Please sign in to comment.