]> git.localhorst.tv Git - alttp.git/commitdiff
fix query in sra sync
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 13 Apr 2024 09:48:32 +0000 (11:48 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 13 Apr 2024 09:48:32 +0000 (11:48 +0200)
app/Console/Commands/SyncSRA.php

index 18680add34caee67797401798f80f75ac43eae65..017b5f1fd9d0d00169eab7bd947781205b98bed4 100644 (file)
@@ -40,7 +40,7 @@ class SyncSRA extends Command {
                $events = Event::where('external_schedule', 'LIKE', 'sra:%')
                        ->where(function (Builder $query) {
                                $query->whereNull('end');
-                               $query->orWhere('end', '<', now());
+                               $query->orWhere('end', '>', now());
                        })
                        ->get();