Skip to content

Commit 1963937

Browse files
authored
[Merge] throw > ResponseEntity.ok 로 수정
[Merge] throw > ResponseEntity.ok 로 수정
2 parents c144306 + 6edc8f2 commit 1963937

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/hs/kr/backend/devpals/domain/user/service/UserProfileService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public ResponseEntity<ApiResponse<String>> userNicknameCheck(String token, Strin
6161
boolean exists = userRepository.existsByNickname(nickname);
6262

6363
if (exists) {
64-
throw new CustomException(ErrorException.DUPLICATE_NICKNAME);
64+
return ResponseEntity.ok(new ApiResponse<>(false, "중복된 닉네임입니다.", null));
6565
} else {
6666
return ResponseEntity.ok(new ApiResponse<>(true, "사용 가능한 닉네임입니다.", null));
6767
}

0 commit comments

Comments
 (0)