Skip to content

Commit

Permalink
hotfix : v.1.0.7 업데이트 푸시알림
Browse files Browse the repository at this point in the history
  • Loading branch information
seungueonn committed Jun 5, 2024
1 parent 5fccfaa commit a05c79f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class UpdateRemindAlarmUseCase {
public Boolean sendUpdateAppPushAlarm() {

String title = "MOING 업데이트 소식";
String message = "이제 누구나 미션을 만들 수 있어요. 지금 업데이트하고 다른 소식도 확인해보세요!";
String message = "이제 사진 인증에 설명을 추가할 수 있어요. 지금 업데이트하고 다른 소식도 확인해보세요!";

List<Member> allMemberOfPushAlarm = memberGetService.getAllMemberOfPushAlarm();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.moing.backend.domain.mission.application.service;

import com.moing.backend.domain.member.application.service.UpdateRemindAlarmUseCase;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Profile;
Expand All @@ -21,6 +22,7 @@ public class MissionScheduleUseCase {

private final MissionRemindAlarmUseCase missionRemindAlarmUseCase;
private final MissionUpdateUseCase missionUpdateUseCase;
private final UpdateRemindAlarmUseCase updateRemindAlarmUseCase;

/**
* 단일 미션 마감
Expand All @@ -41,4 +43,9 @@ public void singleMissionEndRoutine() {
public void MissionRemindAlarm() {
missionRemindAlarmUseCase.sendRemindMissionAlarm();
}

@Scheduled(cron = "0 30 11 * * *")
public void UpdateRemindAlarm() {
updateRemindAlarmUseCase.sendUpdateAppPushAlarm();
}
}

0 comments on commit a05c79f

Please sign in to comment.