diff --git a/src/main/java/com/example/just/Controller/PostController.java b/src/main/java/com/example/just/Controller/PostController.java index 444cc32..459a5b0 100644 --- a/src/main/java/com/example/just/Controller/PostController.java +++ b/src/main/java/com/example/just/Controller/PostController.java @@ -162,6 +162,6 @@ public Long getAccessTokenOfMemberId(HttpServletRequest request) { public void getMessage() throws FirebaseMessagingException { System.out.println(fcmToken); - fcmService.sendMessageByToken("title","body",fcmToken); +// fcmService.sendMessageByToken("title","body",fcmToken); } } diff --git a/src/main/java/com/example/just/Service/CommentService.java b/src/main/java/com/example/just/Service/CommentService.java index c059531..a95beff 100644 --- a/src/main/java/com/example/just/Service/CommentService.java +++ b/src/main/java/com/example/just/Service/CommentService.java @@ -115,8 +115,8 @@ public Comment createComment(Long postId, Long member_id, CommentDto commentDto) .build() ); //부모댓글의 작성자에게 알림 전송 - fcmService.sendMessageByToken("댓글 알림","누군가가 댓글에 대댓글을 작성했어요! \"" - + commentDto.getComment_content() + "\"",parentComment.getMember().getFcmToken()); +// fcmService.sendMessageByToken("댓글 알림","누군가가 댓글에 대댓글을 작성했어요! \"" +// + commentDto.getComment_content() + "\"",parentComment.getMember().getFcmToken()); } } else if (parentComment == null) { //아닐경우는 부모댓글 PostDocument postDocument = postContentESRespository.findById(postId).get(); @@ -136,8 +136,8 @@ public Comment createComment(Long postId, Long member_id, CommentDto commentDto) .build() ); //게시글의 작성자에게 알림 발송 - fcmService.sendMessageByToken("댓글 알림","누군가가 게시글에 댓글을 작성했어요! \"" - + commentDto.getComment_content() + "\"",receiver.get().getFcmToken()); +// fcmService.sendMessageByToken("댓글 알림","누군가가 게시글에 댓글을 작성했어요! \"" +// + commentDto.getComment_content() + "\"",receiver.get().getFcmToken()); } } //댓글 테이블에 저장