all where to whereDate for starttime
This commit is contained in:
1 parent
dcaf503b71
commit
831c8507cf
16 files changed
+66
-71
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user