From dae9c8ebdb10c78d58147e1eda9d4f4ca24b4598 Mon Sep 17 00:00:00 2001 From: Kwon Sehoon Date: Sat, 5 Aug 2023 01:11:51 +0900 Subject: [PATCH] =?UTF-8?q?YEL-45=20[hotfix]=20=ED=86=A0=ED=81=B0=20?= =?UTF-8?q?=EC=9E=AC=EB=B0=9C=EA=B8=89,=20=EC=98=90=EB=A1=9C=20=EC=95=84?= =?UTF-8?q?=EC=9D=B4=EB=94=94=20=EC=A4=91=EB=B3=B5=20=EC=B2=B4=ED=81=AC=20?= =?UTF-8?q?=EB=A1=9C=EC=A7=81=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/domain/authorization/service/AuthService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/yello/server/domain/authorization/service/AuthService.java b/src/main/java/com/yello/server/domain/authorization/service/AuthService.java index 125c250a..830c953a 100644 --- a/src/main/java/com/yello/server/domain/authorization/service/AuthService.java +++ b/src/main/java/com/yello/server/domain/authorization/service/AuthService.java @@ -103,7 +103,7 @@ public Boolean isYelloIdDuplicated(String yelloId) { throw new AuthBadRequestException(YELLOID_REQUIRED_EXCEPTION); } - userRepository.findByYelloId(yelloId); + userRepository.getByYelloId(yelloId); return true; } @@ -201,8 +201,8 @@ public ServiceTokenVO reIssueToken(@NotNull ServiceTokenVO tokens) { Long userId = jwtTokenProvider.getUserId(refreshToken); String uuid = jwtTokenProvider.getUserUuid(refreshToken); - userRepository.findById(userId); - userRepository.findByUuid(uuid); + userRepository.getById(userId); + userRepository.getByUuid(uuid); String newAccessToken = jwtTokenProvider.createAccessToken(userId, uuid); val token = ServiceTokenVO.of(newAccessToken, tokens.refreshToken());