Skip to content

Commit

Permalink
Merge pull request #78 from wafflestudio/feat/mypage
Browse files Browse the repository at this point in the history
🐛 Fix editProfile nickname conflict check
  • Loading branch information
ws11222 authored Jan 31, 2025
2 parents 1023db9 + 7f0cf85 commit a0dff2c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ProfileService(
user: User,
request: EditProfileRequest,
): Profile {
if (userService.existUserEntityByNickname(request.nickname)) {
if (user.nickname != request.nickname && userService.existUserEntityByNickname(request.nickname)) {
throw ProfileEditNicknameConflictException()
}

Expand Down

0 comments on commit a0dff2c

Please sign in to comment.