Skip to content

Commit

Permalink
fix : 닉네임 중복 Exception 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdwnsdnjs13 committed Jul 17, 2024
1 parent c585fd0 commit 9e051cd
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import org.depromeet.spot.usecase.port.out.oauth.OauthRepository;
import org.springframework.stereotype.Service;

import com.sun.jdi.request.DuplicateRequestException;

import lombok.RequiredArgsConstructor;

@Service
Expand Down Expand Up @@ -48,7 +46,8 @@ public Member login(String idCode) {

@Override
public Boolean duplicatedNickname(String nickname) {
if (memberRepository.existsByNickname(nickname)) throw new DuplicateRequestException();
if (memberRepository.existsByNickname(nickname))
throw new MemberNicknameConflictException();
return Boolean.FALSE;
}
}

0 comments on commit 9e051cd

Please sign in to comment.