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

@@ -48,7 +48,7 @@ class EventResource extends Resource
{
return parent::getEloquentQuery()
->where('sport_id', auth()->user()->sport_id)
->where('starttime', '>', now())
->whereDate('starttime', '>', now())
->count();
}
@@ -66,9 +66,9 @@ class EventResource extends Resource
->where('sport_id', auth()->user()->sport_id);
if (config('env.app_env') == 'production') {
$query->where('starttime', '>=', now()->subHour());
$query->whereDate('starttime', '>=', now()->subHour());
} else {
$query->where('starttime', '>=', now());
$query->whereDate('starttime', '>=', now());
}
if (auth()->user()->all_only_none > 0) {