Skip to content

Commit 0b0fe14

Browse files
authored
fix: update day range validation in checkAndCreateTodaysPost function (#55)
1 parent 40602a0 commit 0b0fe14

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/util/advent-scheduler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { promises as fs } from 'node:fs';
21
import { ChannelType, type Client } from 'discord.js';
32
import * as cron from 'node-cron';
3+
import { promises as fs } from 'node:fs';
44
import { config } from '../env.js';
55

66
const TRACKER_FILE = config.adventOfCodeTrackerPath;
@@ -92,7 +92,7 @@ async function checkAndCreateTodaysPost(client: Client, channelId: string): Prom
9292
return;
9393
}
9494

95-
if (day < 1 || day > 25) {
95+
if (day < 1 || day > 12) {
9696
return;
9797
}
9898

0 commit comments

Comments
 (0)