]> git.localhorst.tv Git - alttp.git/commitdiff
fix zsr sync event query
authorDaniel Karbach <holy@localhorst.tv>
Tue, 29 Oct 2024 23:46:35 +0000 (00:46 +0100)
committerDaniel Karbach <holy@localhorst.tv>
Tue, 29 Oct 2024 23:46:35 +0000 (00:46 +0100)
app/Console/Commands/SyncZSR.php

index b7719e25c244f53e0b0452bc785e1b0e4a0cd46c..9c3b8abbc8d2be9eaf54e3eba463e25bc75877a7 100644 (file)
@@ -41,7 +41,7 @@ class SyncZSR extends Command {
                $events = Event::where('external_schedule', 'LIKE', 'zsr:%')
                        ->where(function (Builder $query) {
                                $query->whereNull('end');
-                               $query->orWhere('end', '<', now());
+                               $query->orWhere('end', '>', now());
                        })
                        ->get();