From ba7b49b8fd29f99e1c633dbdf5b00ca6e4ee0222 Mon Sep 17 00:00:00 2001 From: minsu20 Date: Mon, 22 Jul 2024 21:42:46 +0900 Subject: [PATCH 1/2] =?UTF-8?q?MNG-28=20fix:=20missionComment=20path=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application/service/SendMissionCommentAlarmUseCase.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/moing/backend/domain/missionComment/application/service/SendMissionCommentAlarmUseCase.java b/src/main/java/com/moing/backend/domain/missionComment/application/service/SendMissionCommentAlarmUseCase.java index 5f5adadb..d25facf4 100644 --- a/src/main/java/com/moing/backend/domain/missionComment/application/service/SendMissionCommentAlarmUseCase.java +++ b/src/main/java/com/moing/backend/domain/missionComment/application/service/SendMissionCommentAlarmUseCase.java @@ -47,18 +47,16 @@ public void sendCommentAlarm(BaseMissionServiceResponse response, MissionComment sendMissionCommentWriter(mission, missionArchive, title, body, team, newUploadInfos); sendMissionWriter(missionArchive, mission, member, title, body, team, newUploadInfos); } - - private void sendMissionWriter(MissionArchive missionArchive, Mission mission, Member member, String title, String body, Team team, Optional> newUploadInfos) { Member receiver = missionArchive.getMember(); if (checkMemberWriter(receiver, member, newUploadInfos)) { - eventPublisher.publishEvent(new SingleFcmEvent(receiver, title, body, createIdInfo(team.getTeamId(), mission.getId(), missionArchive.getId()), team.getName(), AlarmType.COMMENT, PagePath.NOTICE_PATH.getValue(), receiver.isCommentPush())); + eventPublisher.publishEvent(new SingleFcmEvent(receiver, title, body, createIdInfo(team.getTeamId(), mission.getId(), missionArchive.getId()), team.getName(), AlarmType.COMMENT, PagePath.MISSION_PATH.getValue(), receiver.isCommentPush())); } } - private void sendMissionCommentWriter(Mission mission, MissionArchive missionArchive, + private void sendMissionCommentWriter(Mission mission, MissionArchive missionArchive/ String title, String body, Team team, Optional> newUploadInfos) { Optional> memberIdAndTokensByPush = AlarmHistoryMapper.getNewUploadPushInfo(newUploadInfos); From e0dc9e0af6047b90021e0a61e1ca2c4450e848b9 Mon Sep 17 00:00:00 2001 From: minsu20 Date: Mon, 22 Jul 2024 21:45:27 +0900 Subject: [PATCH 2/2] =?UTF-8?q?MNG-28=20fix:=20=EC=98=A4=ED=83=80=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application/service/SendMissionCommentAlarmUseCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/moing/backend/domain/missionComment/application/service/SendMissionCommentAlarmUseCase.java b/src/main/java/com/moing/backend/domain/missionComment/application/service/SendMissionCommentAlarmUseCase.java index d25facf4..7a14209b 100644 --- a/src/main/java/com/moing/backend/domain/missionComment/application/service/SendMissionCommentAlarmUseCase.java +++ b/src/main/java/com/moing/backend/domain/missionComment/application/service/SendMissionCommentAlarmUseCase.java @@ -56,7 +56,7 @@ private void sendMissionWriter(MissionArchive missionArchive, Mission mission, } } - private void sendMissionCommentWriter(Mission mission, MissionArchive missionArchive/ + private void sendMissionCommentWriter(Mission mission, MissionArchive missionArchive, String title, String body, Team team, Optional> newUploadInfos) { Optional> memberIdAndTokensByPush = AlarmHistoryMapper.getNewUploadPushInfo(newUploadInfos);