From 2ae3886f98ea98b7df50e067b45483b985648138 Mon Sep 17 00:00:00 2001 From: Ethan Davidson <31261035+EthanThatOneKid@users.noreply.github.com> Date: Mon, 5 Aug 2024 14:53:07 -0700 Subject: [PATCH] Render leaderboard every day --- lib/api/dailies.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/api/dailies.ts b/lib/api/dailies.ts index 43cf118..c937bd3 100644 --- a/lib/api/dailies.ts +++ b/lib/api/dailies.ts @@ -14,7 +14,6 @@ export async function executeDailyWebhook( // Get the daily question. const question = await lcClient.getDailyQuestion(); const questionDate = new Date(`${question.date} GMT`); - const isSunday = questionDate.getDay() === 0; // Get the stored season. const storedSeason = seasonID @@ -46,7 +45,7 @@ export async function executeDailyWebhook( const embeds = makeDailyWebhookEmbeds({ question, questionDate, - season: isSunday ? (syncedSeason ?? storedSeason) : null, + season: syncedSeason ?? storedSeason, }); // Execute the webhook.