Skip to content

Commit

Permalink
[FEAT] 캐라서비스 종료 안내 푸시알림
Browse files Browse the repository at this point in the history
  • Loading branch information
leGit-y committed Nov 1, 2024
1 parent 122bc6a commit 442994f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/controller/alarmController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import { worryCreateDTO } from "../interfaces/DTO/worryDTO";

const serviceEndAlarm = async () => {
try {
// const userIds = await userService.getAllUser();
const userIds = [25]
const userIds = await userService.getAllUser();

const title = "캐라 서비스 종료 안내"
const msg = ["안녕하세요, 캐라(Kaera) 서비스가 2024년 11월 11일 종료됩니다. 데이터는 종료 후 2개월간 보관되며 이후에는 완전히 파기될 예정입니다. 그동안 캐라(Kaera)를 사랑해 주셔서 감사합니다."]
Expand Down
2 changes: 1 addition & 1 deletion src/modules/scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const deadline_alarm_2 = cron.schedule('00 20 * * *', alarmController.setNoDeadl
const deadline_alarm_3 = cron.schedule('00 12 * * *', alarmController.setOnDeadlineAlarm, option);

// 2024-11-1 낮12시에 종료 알림
const service_end_alarm = cron.schedule('25 9 1 11 *', alarmController.serviceEndAlarm, option);
const service_end_alarm = cron.schedule('00 12 1 11 *', alarmController.serviceEndAlarm, option);


export default{
Expand Down

0 comments on commit 442994f

Please sign in to comment.