diff --git a/app/Console/Commands/Grapper/TxOdds/Fixtures.php b/app/Console/Commands/Grapper/TxOdds/Fixtures.php index 8911d700..0511664f 100644 --- a/app/Console/Commands/Grapper/TxOdds/Fixtures.php +++ b/app/Console/Commands/Grapper/TxOdds/Fixtures.php @@ -29,16 +29,6 @@ class Fixtures $total_soccer = 0; $total_others = 0; - /** - * Delete - */ - // $info = 0; - $info = Event::where('starttime', '<', Carbon::now()->toDateTimeString())->delete(); - - if ($debug) { - Notice::note("Deleted: $info"); - } - $sports = Sport::where('is_active', 1)->pluck('id')->toArray(); /** diff --git a/app/Console/Commands/Grapper/TxOdds/Odds.php b/app/Console/Commands/Grapper/TxOdds/Odds.php index e5452ef2..637d3d40 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds.php @@ -44,7 +44,7 @@ class Odds /** * Delete */ - $info = Event::where('starttime', '<', Carbon::now()->toDateTimeString())->delete(); + $info = Event::where('starttime', '<', Carbon::now()->subMinutes(10)->toDateTimeString())->delete(); if ($debug) { Notice::note("Deleted: $info");