Skip to content

Commit

Permalink
fix: 새로운 유저인지 판단하는 메소드 반환값 오류 수정
Browse files Browse the repository at this point in the history
프로필이 존재하면(true) → 새로운 유저가 아님(false)
프로필이 존재하지 않으면(false) → 새로운 유저임(true)
  • Loading branch information
jkde7721 committed Mar 17, 2023
1 parent 97a86b5 commit 132a295
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private User updateUser(User user, SocialInfo socialInfo) {
}

private Boolean isNewUser(Long userId) {
return userRepository.existsByProfile(userId);
return !userRepository.existsByProfile(userId);
}

private void manageRefreshToken(User loginUser, String refreshToken) {
Expand Down

0 comments on commit 132a295

Please sign in to comment.