From 8784dd93b5bacb8839faad0a519bb9ba6928193f Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Sat, 13 Apr 2024 11:48:32 +0200 Subject: [PATCH] fix query in sra sync --- app/Console/Commands/SyncSRA.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.2