]> git.localhorst.tv Git - alttp.git/commitdiff
only push confirmed episodes to discord
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 3 Aug 2025 23:31:22 +0000 (01:31 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 3 Aug 2025 23:31:22 +0000 (01:31 +0200)
app/Console/Commands/DiscordEpisodeSubscriptionsCommand.php

index 94bb5229027738a779ab10a81c8da273835b3e4b..8c59b6f39d60891ee4a7a856c2a70b79751eb6c0 100644 (file)
@@ -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) {