From: Daniel Karbach Date: Sat, 13 Apr 2024 09:48:32 +0000 (+0200) Subject: fix query in sra sync X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=8784dd93b5bacb8839faad0a519bb9ba6928193f;p=alttp.git fix query in sra sync --- diff --git a/app/Console/Commands/SyncSRA.php b/app/Console/Commands/SyncSRA.php index 18680ad..017b5f1 100644 --- a/app/Console/Commands/SyncSRA.php +++ b/app/Console/Commands/SyncSRA.php @@ -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();