]> git.localhorst.tv Git - alttp.git/commitdiff
fix tfl purge condition
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 2 Dec 2025 15:19:41 +0000 (16:19 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 2 Dec 2025 15:19:41 +0000 (16:19 +0100)
app/Console/Commands/SyncTFL.php

index f4d9490c66d8f5c498d4f62c71d60aa5f66c3a5a..8f4cf26cf67ac19aeedfc5cac88169738ea83bd9 100644 (file)
@@ -78,7 +78,7 @@ class SyncTFL extends Command {
                $to_purge = $event->episodes()
                        ->whereNotIn('ext_id', $ext_ids)
                        ->where('ext_id', 'LIKE', 'tfl:%')
-                       ->where('start', '>', 'NOW()');
+                       ->where('start', '>', now());
                foreach ($to_purge->get() as $episode) {
                        $episode->callOff();
                }