Skip to content

Commit

Permalink
Render leaderboard every day
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanThatOneKid committed Aug 5, 2024
1 parent f155665 commit 2ae3886
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/api/dailies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -46,7 +45,7 @@ export async function executeDailyWebhook(
const embeds = makeDailyWebhookEmbeds({
question,
questionDate,
season: isSunday ? (syncedSeason ?? storedSeason) : null,
season: syncedSeason ?? storedSeason,
});

// Execute the webhook.
Expand Down

0 comments on commit 2ae3886

Please sign in to comment.