From d87ca53db7f8f03eca5294ddcd96afa5ee636da6 Mon Sep 17 00:00:00 2001 From: encoreJeong Date: Sat, 27 Jul 2024 13:16:55 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20fcm=20token=EC=9D=B4=20=EC=97=86?= =?UTF-8?q?=EC=9D=84=20=EB=95=8C=20=EC=98=88=EC=99=B8=EC=B2=98=EB=A6=AC=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/goat/server/auth/application/AuthService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/goat/server/auth/application/AuthService.java b/src/main/java/com/goat/server/auth/application/AuthService.java index 6205905..717466d 100644 --- a/src/main/java/com/goat/server/auth/application/AuthService.java +++ b/src/main/java/com/goat/server/auth/application/AuthService.java @@ -17,6 +17,7 @@ import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; +import org.springframework.util.StringUtils; import static com.goat.server.mypage.exception.errorcode.MypageErrorCode.USER_NOT_FOUND; @@ -58,7 +59,7 @@ public UserInfoResponse saveOnBoardingInfo(Long userId, OnBoardingRequest onBoar user.updateOnBoardingInfo(onBoardingRequest.nickname(), onBoardingRequest.goal()); - if(!onBoardingRequest.fcmToken().isBlank()) { + if(StringUtils.hasText(onBoardingRequest.fcmToken())) { user.updateFcmToken(onBoardingRequest.fcmToken()); }