Skip to content

Commit

Permalink
Merge pull request #68 from nick102030/view
Browse files Browse the repository at this point in the history
[fix] : FCM 알림 비활성화
  • Loading branch information
nick102030 authored Jun 5, 2024
2 parents 7d653bd + c73580d commit a80830d
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ public void writeComment(Long postId, commentRequest request, User user)
commentRepository.save(comment);
log.info("[comment] : 댓글 작성 완료");

String title = user.getNickname() + "님이 댓글을 작성하셨습니다";
String body = request.getContent();
String targetToken = FCMService.getTargetToken(post.getUser());

FCMService.sendMessageTo(targetToken, title, body);
// String title = user.getNickname() + "님이 댓글을 작성하셨습니다";
// String body = request.getContent();
// String targetToken = FCMService.getTargetToken(post.getUser());
//
// FCMService.sendMessageTo(targetToken, title, body);
}

public Page<commentResponse> findAllComment(Pageable pageable, Long postId) {
Expand Down

0 comments on commit a80830d

Please sign in to comment.