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); } }