From 9f2e6958007e4507d119d986afef1529ba27f379 Mon Sep 17 00:00:00 2001 From: Wiktoria Van Harneveldt Date: Mon, 8 Dec 2025 21:46:07 +0100 Subject: [PATCH] fix: update day range validation in checkAndCreateTodaysPost function --- src/util/advent-scheduler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/advent-scheduler.ts b/src/util/advent-scheduler.ts index 92547c3..4a3db1f 100644 --- a/src/util/advent-scheduler.ts +++ b/src/util/advent-scheduler.ts @@ -1,6 +1,6 @@ -import { promises as fs } from 'node:fs'; import { ChannelType, type Client } from 'discord.js'; import * as cron from 'node-cron'; +import { promises as fs } from 'node:fs'; import { config } from '../env.js'; const TRACKER_FILE = config.adventOfCodeTrackerPath; @@ -92,7 +92,7 @@ async function checkAndCreateTodaysPost(client: Client, channelId: string): Prom return; } - if (day < 1 || day > 25) { + if (day < 1 || day > 12) { return; }