Skip to content

Commit

Permalink
fix : 회원탈퇴 예외 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
손명진 authored and 손명진 committed Aug 6, 2024
1 parent 621246f commit 3490d23
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public Long signOut(Long memberId) {
log.info("[MemberService.deleteMember] memberId: {}", memberId);

// 회원을 찾고
Member member = memberRepository.findById(memberId).orElse(null);
Member member = memberRepository.findById(memberId).orElseThrow(()-> new MemberException(CANNOT_FOUND_MEMBER));

// 회원 상태를 Delete 변경하고
member.setStatus(BaseStatus.DELETE);
Expand Down

0 comments on commit 3490d23

Please sign in to comment.