From 7017479a3eb8f620c806cb142b340f6ff6450472 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Wed, 30 Oct 2024 00:46:35 +0100 Subject: [PATCH] fix zsr sync event query --- app/Console/Commands/SyncZSR.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.2