From: Daniel Karbach Date: Tue, 29 Oct 2024 23:46:35 +0000 (+0100) Subject: fix zsr sync event query X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=7017479a3eb8f620c806cb142b340f6ff6450472;p=alttp.git fix zsr sync event query --- diff --git a/app/Console/Commands/SyncZSR.php b/app/Console/Commands/SyncZSR.php index b7719e2..9c3b8ab 100644 --- a/app/Console/Commands/SyncZSR.php +++ b/app/Console/Commands/SyncZSR.php @@ -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();