Skip to content

Commit

Permalink
Merge pull request #227 from IoTeaTime/feature/222-group-fcm-topic
Browse files Browse the repository at this point in the history
fix: spotless 적용
  • Loading branch information
ywonchae1 authored Nov 30, 2024
2 parents cae7f49 + 1a573df commit 9ad2b2c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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()));
}

Expand Down

0 comments on commit 9ad2b2c

Please sign in to comment.