From 2ab98dbcc017d9fad9388b0310ef13d6d68e979a Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Mon, 4 Aug 2025 01:31:22 +0200 Subject: [PATCH] only push confirmed episodes to discord --- app/Console/Commands/DiscordEpisodeSubscriptionsCommand.php | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.47.2