delet event 10min after startime

This commit is contained in:
salam committed 2026-02-06 18:10:08 +01:00
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_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();
/**
+1 -1
View File
@@ -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");