Skip to content

Commit

Permalink
override the webhook URL if applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanThatOneKid committed Sep 29, 2023
1 parent 4827940 commit 5368519
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/dailies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ export function makeDailyWebhookPostHandler(
// Get the season ID if applicable.
const seasonID = request.url.searchParams.get("season_id");

// Override the webhook URL if applicable.
const overrideWebhookURL = request.url.searchParams.get("webhook_url");
if (overrideWebhookURL) {
webhookURL = overrideWebhookURL;
}

// Execute the webhook.
return await executeDailyWebhook(
lcClient,
Expand Down

0 comments on commit 5368519

Please sign in to comment.