From: Daniel Karbach Date: Sun, 3 Aug 2025 23:31:22 +0000 (+0200) Subject: only push confirmed episodes to discord X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=2ab98dbcc017d9fad9388b0310ef13d6d68e979a;p=alttp.git only push confirmed episodes to discord --- diff --git a/app/Console/Commands/DiscordEpisodeSubscriptionsCommand.php b/app/Console/Commands/DiscordEpisodeSubscriptionsCommand.php index 94bb522..8c59b6f 100644 --- a/app/Console/Commands/DiscordEpisodeSubscriptionsCommand.php +++ b/app/Console/Commands/DiscordEpisodeSubscriptionsCommand.php @@ -54,6 +54,7 @@ class DiscordEpisodeSubscriptionsCommand extends Command $query = Episode::with(['channels', 'event', 'players']) ->where('episodes.start', '>', $from) ->where('episodes.start', '<', $until) + ->where('episodes.confirmed', '=', true) ->orderBy('episodes.start', 'ASC') ->limit(20); $query->where(function ($subquery) use ($eventIDs, $modeIDs, $userIDs) {