Skip to content

Commit

Permalink
Merge pull request #57 from FlouD-2024/mypage
Browse files Browse the repository at this point in the history
Fix: delete check duplicated nickname in update mypage
  • Loading branch information
SeongJoon-K authored Mar 22, 2024
2 parents ab173a3 + 4e57a21 commit 97e45f1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/main/java/floud/demo/service/MyPageService.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ public ApiResponse<?> updateMyPage(String authorizationHeader, MypageUpdateReque
//Get user
Users users = authService.findUserByToken(authorizationHeader);

//Check Nickname Duplicated
if(checkNicknameDuplicated(requestDto.getNickname()))
return ApiResponse.failure(Error.NICKNAME_ALREADY_EXIST);

//Update User info
users.updateUserInfo(requestDto);
usersRepository.save(users);
Expand Down

0 comments on commit 97e45f1

Please sign in to comment.