From b31dbab4aec0d88369a8a38baa04d2b584f27667 Mon Sep 17 00:00:00 2001 From: yeon015 Date: Tue, 3 Sep 2024 01:08:25 +0900 Subject: [PATCH] =?UTF-8?q?fix(#199)=20:=20=EC=B9=B4=EC=B9=B4=EC=98=A4=20?= =?UTF-8?q?=ED=83=88=ED=87=B4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/umc/th/juinjang/controller/OAuthController.java | 2 +- src/main/java/umc/th/juinjang/service/auth/OAuthService.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/umc/th/juinjang/controller/OAuthController.java b/src/main/java/umc/th/juinjang/controller/OAuthController.java index 744a6b2..61f3c4d 100644 --- a/src/main/java/umc/th/juinjang/controller/OAuthController.java +++ b/src/main/java/umc/th/juinjang/controller/OAuthController.java @@ -138,7 +138,7 @@ public ApiResponse kakaoWithdraw(@AuthenticationPrincipal Member member, @Reques if (!isUnlink) { throw new ExceptionHandler(NOT_UNLINK_KAKAO); } - oauthService.deleteMember(member); +// oauthService.deleteMember(member); return ApiResponse.onSuccess(SuccessStatus.MEMBER_DELETE); } diff --git a/src/main/java/umc/th/juinjang/service/auth/OAuthService.java b/src/main/java/umc/th/juinjang/service/auth/OAuthService.java index 3b94902..5039840 100644 --- a/src/main/java/umc/th/juinjang/service/auth/OAuthService.java +++ b/src/main/java/umc/th/juinjang/service/auth/OAuthService.java @@ -287,6 +287,7 @@ public boolean kakaoWithdraw(Member member, Long kakaoTargetId) { if (response.getStatusCode().is2xxSuccessful()) { // 성공 처리 로직 log.info("카카오 탈퇴 성공"); + memberRepository.deleteById(member.getMemberId()); return true; } else { // 실패 처리 로직 return false;