From 8dff4009bfd9cd334ae56f0df1fbd3a275a9e235 Mon Sep 17 00:00:00 2001 From: kyuuseiryuu Date: Tue, 24 Mar 2026 17:45:09 +0900 Subject: [PATCH] refactor(schedules): use Range object for hour definition in EventWatchSchedule Replace the string '7-23' with new nodeSchedule.Range(7, 23) for the hour configuration. This change aligns the schedule definition with the explicit Range object type, potentially improving type safety or ensuring compatibility with the underlying node-schedule library behavior. --- src/schedules/EventWatchSchedule.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/schedules/EventWatchSchedule.ts b/src/schedules/EventWatchSchedule.ts index 96423fb..ed0c4c6 100644 --- a/src/schedules/EventWatchSchedule.ts +++ b/src/schedules/EventWatchSchedule.ts @@ -58,7 +58,7 @@ export class EventWatchSchedule implements Schedule { start() { const schedule = nodeSchedule.scheduleJob('event-watch', { minute: [0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55], - hour: '7-23', + hour: new nodeSchedule.Range(7, 23), }, () => this.watchEvents()); console.debug('Start schedule:', schedule.name); }