starttime delete events
This commit is contained in:
1 parent
fcad6af570
commit
575330ea17
4 files changed
+11
-12
No files matched your search
@@ -24,7 +24,7 @@ class Fixtures
|
||||
/**
|
||||
* Delete Started
|
||||
*/
|
||||
$info = Mapper::where('starttime', '<', Carbon::now()->subHours(24))->delete();
|
||||
$info = Mapper::where('starttime', '<', Carbon::now()->subHours(2))->delete();
|
||||
|
||||
if ($debug) {
|
||||
Notice::note("Deleted: $info");
|
||||
|
||||
@@ -45,11 +45,10 @@ class Odds
|
||||
/**
|
||||
* Delete
|
||||
*/
|
||||
$info = Event::where('starttime', '<', Carbon::now()->subMinutes(10))->delete();
|
||||
|
||||
if ($debug) {
|
||||
Notice::note("Deleted: $info");
|
||||
}
|
||||
// $info = Event::where('starttime', '<', Carbon::now()->subMinutes(10))->delete();
|
||||
// if ($debug) {
|
||||
// Notice::note("Deleted: $info");
|
||||
// }
|
||||
|
||||
switch (Nuh::$options['sport_id']) {
|
||||
case 1:
|
||||
|
||||
@@ -72,7 +72,7 @@ class EventResource extends Resource
|
||||
->where('sport_id', auth()->user()->sport_id)
|
||||
->orderBy('starttime', 'ASC');
|
||||
|
||||
$query->where('starttime', '>=', Carbon::now()->timezone('CET'));
|
||||
$query->where('starttime', '>=', Carbon::now());
|
||||
|
||||
// if (config('env.app_env') == 'production') {
|
||||
// $query->where('starttime', '>=', Carbon::now()->subHour());
|
||||
|
||||
Reference in new issue
Block a user