all where to whereDate for starttime

This commit is contained in:
salam committed 2026-02-22 17:08:41 +01:00
1 parent dcaf503b71
commit 831c8507cf
16 files changed
+66 -71

No files matched your search

+2 -2
View File
@@ -22,7 +22,7 @@ class LoadEvents
->with('home')
->with('away')
->where('sport_id', auth()->user()->sport_id)
->where('starttime', '>', Carbon::now())
->whereDate('starttime', '>', Carbon::now())
->where(function ($query) use ($element_ids) {
$query->orWhereIn('home_id', $element_ids)->orWhereIn('away_id', $element_ids);
});
@@ -31,7 +31,7 @@ class LoadEvents
->with('home')
->with('away')
->where('sport_id', auth()->user()->sport_id)
->where('starttime', '>', Carbon::now());
->whereDate('starttime', '>', Carbon::now());
}
switch (Auth::user()->provider_id) {