diff --git a/src/main/java/kr/hs/dgsw/SOPO_server_v2/domain/member/service/MemberService.java b/src/main/java/kr/hs/dgsw/SOPO_server_v2/domain/member/service/MemberService.java index 084dbfc..e59b6a5 100644 --- a/src/main/java/kr/hs/dgsw/SOPO_server_v2/domain/member/service/MemberService.java +++ b/src/main/java/kr/hs/dgsw/SOPO_server_v2/domain/member/service/MemberService.java @@ -20,7 +20,7 @@ public class MemberService { @Transactional(rollbackFor = Exception.class) public Response deleteMember(){ - MemberEntity member = memberRepository.findByMemberId(getCurrentMember.current().getMemberId()); + MemberEntity member = getCurrentMember.current(); member.setMemberState(MemberState.DELETED); return Response.of(HttpStatus.OK, "성공"); }