From 3490d2367df45ba887fed31230301add3656b65b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=86=90=EB=AA=85=EC=A7=84?= Date: Tue, 6 Aug 2024 18:22:10 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=ED=9A=8C=EC=9B=90=ED=83=88=ED=87=B4?= =?UTF-8?q?=20=EC=98=88=EC=99=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/example/likelion12/service/MemberService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/example/likelion12/service/MemberService.java b/src/main/java/com/example/likelion12/service/MemberService.java index 23bd9e0..9a87ace 100644 --- a/src/main/java/com/example/likelion12/service/MemberService.java +++ b/src/main/java/com/example/likelion12/service/MemberService.java @@ -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);