starttime delete events

This commit is contained in:
salam committed 2026-03-12 11:00:33 +01:00
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");
+4 -5
View File
@@ -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());
Generated
+5 -5
View File
@@ -4584,16 +4584,16 @@
},
{
"name": "nesbot/carbon",
"version": "3.11.2",
"version": "3.11.3",
"source": {
"type": "git",
"url": "https://github.com/CarbonPHP/carbon.git",
"reference": "57d696f4ec76d8560cc13b9d16ec01afc4379d04"
"reference": "6a7e652845bb018c668220c2a545aded8594fbbf"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/CarbonPHP/carbon/zipball/57d696f4ec76d8560cc13b9d16ec01afc4379d04",
"reference": "57d696f4ec76d8560cc13b9d16ec01afc4379d04",
"url": "https://api.github.com/repos/CarbonPHP/carbon/zipball/6a7e652845bb018c668220c2a545aded8594fbbf",
"reference": "6a7e652845bb018c668220c2a545aded8594fbbf",
"shasum": ""
},
"require": {
@@ -4685,7 +4685,7 @@
"type": "tidelift"
}
],
"time": "2026-03-10T21:43:48+00:00"
"time": "2026-03-11T17:23:39+00:00"
},
{
"name": "nette/php-generator",