From 132a295ec83e47dc71c420a8022b48b695aa6eca Mon Sep 17 00:00:00 2001 From: jkde7721 Date: Fri, 17 Mar 2023 16:25:34 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=83=88=EB=A1=9C=EC=9A=B4=20=EC=9C=A0?= =?UTF-8?q?=EC=A0=80=EC=9D=B8=EC=A7=80=20=ED=8C=90=EB=8B=A8=ED=95=98?= =?UTF-8?q?=EB=8A=94=20=EB=A9=94=EC=86=8C=EB=93=9C=20=EB=B0=98=ED=99=98?= =?UTF-8?q?=EA=B0=92=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 프로필이 존재하면(true) → 새로운 유저가 아님(false) 프로필이 존재하지 않으면(false) → 새로운 유저임(true) --- .../com/project/coalba/domain/auth/service/AuthService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/project/coalba/domain/auth/service/AuthService.java b/src/main/java/com/project/coalba/domain/auth/service/AuthService.java index 8df1f40..4a3f425 100644 --- a/src/main/java/com/project/coalba/domain/auth/service/AuthService.java +++ b/src/main/java/com/project/coalba/domain/auth/service/AuthService.java @@ -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) {