From 3c083a221036a37553bf4df3b29f6ac40bda49cb Mon Sep 17 00:00:00 2001 From: yeseul106 <20191037@sungshin.ac.kr> Date: Tue, 2 Jul 2024 11:17:20 +0900 Subject: [PATCH] =?UTF-8?q?#255=20[CHORE]=20=EB=A9=94=EC=84=9C=EB=93=9C?= =?UTF-8?q?=EB=AA=85=20prefix=20=ED=86=B5=EC=9D=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../makers/operation/web/alarm/service/AlarmServiceImpl.java | 4 ++-- .../org/sopt/makers/operation/client/alarm/AlarmManager.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/operation-api/src/main/java/org/sopt/makers/operation/web/alarm/service/AlarmServiceImpl.java b/operation-api/src/main/java/org/sopt/makers/operation/web/alarm/service/AlarmServiceImpl.java index 9e325d51..7b66a4f1 100644 --- a/operation-api/src/main/java/org/sopt/makers/operation/web/alarm/service/AlarmServiceImpl.java +++ b/operation-api/src/main/java/org/sopt/makers/operation/web/alarm/service/AlarmServiceImpl.java @@ -46,7 +46,7 @@ public class AlarmServiceImpl implements AlarmService { public void sendInstantAlarm(AlarmInstantSendRequest request) { val savedAlarm = alarmRepository.save(request.toEntity()); val targets = getTargets(savedAlarm); - alarmManager.postInstantAlarm(AlarmSenderRequest.of(savedAlarm, targets)); + alarmManager.sendInstantAlarm(AlarmSenderRequest.of(savedAlarm, targets)); savedAlarm.updateToSent(formatSendAt(LocalDateTime.now())); } @@ -73,7 +73,7 @@ public void sendScheduleAlarm(AlarmScheduleSendRequest request) { webLink ); - alarmManager.postReservedAlarm(eventBridgeRequest, request.postDate(), request.postTime(), savedAlarm.getId()); + alarmManager.sendReservedAlarm(eventBridgeRequest, request.postDate(), request.postTime(), savedAlarm.getId()); } @Override diff --git a/operation-external/src/main/java/org/sopt/makers/operation/client/alarm/AlarmManager.java b/operation-external/src/main/java/org/sopt/makers/operation/client/alarm/AlarmManager.java index e299bbac..facd07a8 100644 --- a/operation-external/src/main/java/org/sopt/makers/operation/client/alarm/AlarmManager.java +++ b/operation-external/src/main/java/org/sopt/makers/operation/client/alarm/AlarmManager.java @@ -14,11 +14,11 @@ public class AlarmManager { private final AlarmSenderImpl alarmSender; private final EventBridgeSenderImpl eventBridgeSender; - public void postInstantAlarm(AlarmSenderRequest request) { + public void sendInstantAlarm(AlarmSenderRequest request) { alarmSender.send(request); } - public void postReservedAlarm(EventBridgeSenderRequest request, String postDate, String postTime, Long alarmId) { + public void sendReservedAlarm(EventBridgeSenderRequest request, String postDate, String postTime, Long alarmId) { eventBridgeSender.scheduleAlarm(request, postDate, postTime, alarmId); } }