wip
This commit is contained in:
1 parent
64e161a816
commit
9265e576eb
3 files changed
+4
-4
No files matched your search
@@ -25,7 +25,7 @@ class Fixtures
|
||||
* Delete Started
|
||||
*/
|
||||
// XXX
|
||||
// $info = Mapper::whereDate('starttime', '<', Carbon::now()->subHours(3))->delete();
|
||||
// $info = Mapper::whereDate('starttime', '<', Carbon::now()->subHours(12))->delete();
|
||||
|
||||
if ($debug) {
|
||||
Notice::note("Deleted: $info");
|
||||
|
||||
@@ -29,7 +29,7 @@ class LoadEvents
|
||||
->with('home')
|
||||
->with('away')
|
||||
->where('sport_id', auth()->user()->sport_id)
|
||||
->whereDate('starttime', '>', Carbon::now())
|
||||
->whereDate('starttime', '>', Carbon::now()->subHours(6))
|
||||
->where(function ($query) use ($element_ids) {
|
||||
$query->orWhereIn('home_id', $element_ids)->orWhereIn('away_id', $element_ids);
|
||||
});
|
||||
@@ -38,7 +38,7 @@ class LoadEvents
|
||||
->with('home')
|
||||
->with('away')
|
||||
->where('sport_id', auth()->user()->sport_id)
|
||||
->whereDate('starttime', '>', Carbon::now());
|
||||
->whereDate('starttime', '>', Carbon::now()->subHours(6));
|
||||
}
|
||||
|
||||
switch (Auth::user()->provider_id) {
|
||||
|
||||
@@ -33,7 +33,7 @@ class LoadProvider
|
||||
|
||||
} else {
|
||||
return Mapper::query()
|
||||
->whereDate('starttime', '>', Carbon::now()->subHours(5))
|
||||
->whereDate('starttime', '>', Carbon::now()->subHours(12))
|
||||
->where('sport_id', auth()->user()->sport_id)
|
||||
->where('provider_id', auth()->user()->provider_id);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user