From 1a573df5648b76ad988932933d52944cff62ea8b Mon Sep 17 00:00:00 2001 From: ywonchae1 Date: Sat, 30 Nov 2024 17:56:11 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20spotless=20=EC=A0=81=EC=9A=A9=20(#222)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ioteatime/meonghanyangserver/fcm/service/FcmService.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/ioteatime/meonghanyangserver/fcm/service/FcmService.java b/src/main/java/org/ioteatime/meonghanyangserver/fcm/service/FcmService.java index b03fb4bc..5800a8e1 100644 --- a/src/main/java/org/ioteatime/meonghanyangserver/fcm/service/FcmService.java +++ b/src/main/java/org/ioteatime/meonghanyangserver/fcm/service/FcmService.java @@ -13,8 +13,6 @@ import org.ioteatime.meonghanyangserver.member.repository.MemberRepository; import org.springframework.stereotype.Service; -import java.util.Optional; - @Service @RequiredArgsConstructor public class FcmService { @@ -28,7 +26,8 @@ public void saveToken(Long memberId, String token) { .updateFcmTokenById(memberId, token) .orElseThrow(() -> new NotFoundException(AuthErrorType.NOT_FOUND)); // 토픽이 갱신될 때마다 토픽 다시 구독 - groupMemberRepository.findGroupFromGroupMember(memberId) + groupMemberRepository + .findGroupFromGroupMember(memberId) .ifPresent(groupEntity -> fcmClient.subTopic(token, groupEntity.getFcmTopic())); }