Skip to content

Commit d85eaec

Browse files
authored
✨ sync events up to 2 weeks in the future
1 parent 6bcfca9 commit d85eaec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mod.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { DiscordClient } from "./discord.ts";
1515
import { loadEnvConfig } from "./envConfig.ts";
1616
import { GoogleCalendarClient } from "./gcal.ts";
1717

18-
const A_WEEK = 1000 * 3600 * 24 * 7;
18+
const TWO_WEEKS = 1000 * 3600 * 24 * 7 * 2;
1919

2020
const envConfig = loadEnvConfig();
2121
const discordClient = new DiscordClient(envConfig.discord);
@@ -24,7 +24,7 @@ const gCalClient = new GoogleCalendarClient(envConfig.googleCalendar);
2424
const discordApplicationId = envConfig.discord.applicationId;
2525
const syncDateRange = {
2626
from: new Date(),
27-
to: new Date(Date.now() + A_WEEK),
27+
to: new Date(Date.now() + TWO_WEEKS),
2828
};
2929

3030
const calendarToDiscordEvent = (

0 commit comments

Comments
 (0)