Skip to content

Commit

Permalink
Merge pull request #55 from GOAT-WAAAM/dev/encJ/auth-register
Browse files Browse the repository at this point in the history
[FIX] fcm token이 없을 때 예외처리 추가
  • Loading branch information
encoreJeong authored Jul 27, 2024
2 parents 834dd75 + d87ca53 commit 5831fb7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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());
}

Expand Down

0 comments on commit 5831fb7

Please sign in to comment.