From 43e98b7da9123fae8c83451984c604fd3d34096d Mon Sep 17 00:00:00 2001 From: yeon015 Date: Thu, 3 Oct 2024 17:46:21 +0900 Subject: [PATCH] =?UTF-8?q?fix(#233)=20:=20=EB=8B=89=EB=84=A4=EC=9E=84=20?= =?UTF-8?q?=EC=A4=91=EB=B3=B5=20=ED=99=95=EC=9D=B8=20=EC=97=90=EB=9F=AC=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../umc/th/juinjang/service/MemberService/MemberService.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/umc/th/juinjang/service/MemberService/MemberService.java b/src/main/java/umc/th/juinjang/service/MemberService/MemberService.java index 56387e2..f085c7e 100644 --- a/src/main/java/umc/th/juinjang/service/MemberService/MemberService.java +++ b/src/main/java/umc/th/juinjang/service/MemberService/MemberService.java @@ -47,11 +47,6 @@ public class MemberService { // 닉네임 수정 public MemberResponseDto.nicknameDto patchNickname(Member member, MemberRequestDto memberRequestDto) { - // 받아온 닉네임 중복 확인 - Member findMember = memberRepository.findByNickname(memberRequestDto.getNickname()); - if(findMember != null) - throw new MemberHandler(ALREADY_NICKNAME); - // Member 받아오면 해당 member의 nickname 변경 member.updateNickname(memberRequestDto.getNickname()); memberRepository.save(member); // 변수 없이 member 그대로 저장