From 3eb492b10e035adb0fa9739e7129f63cbe20a886 Mon Sep 17 00:00:00 2001 From: Hong0329 Date: Wed, 27 Nov 2024 19:34:21 +0900 Subject: [PATCH] fix noti triggerid refine logic --- .../api/notification/service/NotificationQueryService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WableServer/src/main/java/com/wable/www/WableServer/api/notification/service/NotificationQueryService.java b/WableServer/src/main/java/com/wable/www/WableServer/api/notification/service/NotificationQueryService.java index 8adb850..fe7e47a 100644 --- a/WableServer/src/main/java/com/wable/www/WableServer/api/notification/service/NotificationQueryService.java +++ b/WableServer/src/main/java/com/wable/www/WableServer/api/notification/service/NotificationQueryService.java @@ -115,7 +115,8 @@ private long refineNotificationTriggerId (String triggerType, Long triggerId, No // Comment comment = commentRepository.findCommentByIdOrThrow(triggerId); //답글관련(답글좋아요 혹은 답글 작성, 답글 투명도)시 게시물 id 반환 - if(triggerType.equals("comment") || triggerType.equals("commentLiked") || triggerType.equals("commentGhost")) { + if(triggerType.equals("comment") || triggerType.equals("commentLiked") || triggerType.equals("commentGhost") + || triggerType.equals("childCommentLiked") || triggerType.equals("childComment")) { Comment comment = commentRepository.findCommentByIdOrThrow(triggerId); return comment.getContent().getId(); }else{