delet event 10min after startime
This commit is contained in:
1 parent
60df43f241
commit
3671902fe7
2 files changed
+1
-11
No files matched your search
@@ -29,16 +29,6 @@ class Fixtures
|
|||||||
$total_soccer = 0;
|
$total_soccer = 0;
|
||||||
$total_others = 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();
|
$sports = Sport::where('is_active', 1)->pluck('id')->toArray();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ class Odds
|
|||||||
/**
|
/**
|
||||||
* Delete
|
* Delete
|
||||||
*/
|
*/
|
||||||
$info = Event::where('starttime', '<', Carbon::now()->toDateTimeString())->delete();
|
$info = Event::where('starttime', '<', Carbon::now()->subMinutes(10)->toDateTimeString())->delete();
|
||||||
|
|
||||||
if ($debug) {
|
if ($debug) {
|
||||||
Notice::note("Deleted: $info");
|
Notice::note("Deleted: $info");
|
||||||
|
|||||||
Reference in new issue
Block a user