Skip to content

Commit

Permalink
fix(#233) : 닉네임 중복 확인 에러 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
yeon015 committed Oct 3, 2024
1 parent 3cc0821 commit 43e98b7
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 그대로 저장
Expand Down

0 comments on commit 43e98b7

Please sign in to comment.