Skip to content

Commit

Permalink
fix: spotless 적용 (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
ywonchae1 committed Nov 30, 2024
1 parent 9ea7381 commit 1a573df
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 1a573df

Please sign in to comment.