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
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user