From e37f82f78758cec6ac976aa7c2c18b433a575a69 Mon Sep 17 00:00:00 2001 From: kyuuseiryuu Date: Wed, 25 Mar 2026 01:10:59 +0900 Subject: [PATCH] refactor(schedules): use explicit array for hour range in event watch Replace the nodeSchedule.Range object with a literal array for the hour parameter in the event watch schedule. This makes the scheduled hours (7 to 22) more explicit and easier to read at a glance, while maintaining the exact same execution logic. --- 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 9c9a7b1..1ea3791 100644 --- a/src/schedules/EventWatchSchedule.ts +++ b/src/schedules/EventWatchSchedule.ts @@ -72,7 +72,7 @@ export class EventWatchSchedule implements Schedule { start() { const job = nodeSchedule.scheduleJob('event-watch', { minute: [0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55], - hour: new nodeSchedule.Range(7, 22), + hour: [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22], }, () => this.watchEvents()); this.#job = job; console.debug('Start schedule: %s, next run at %s', job.name, dayjs.tz(job.nextInvocation(), 'Asia/Tokyo').format('YYYY-MM-DD HH:mm:ss'));