starttime delete events
This commit is contained in:
1 parent
fcad6af570
commit
575330ea17
4 files changed
+11
-12
No files matched your search
@@ -24,7 +24,7 @@ class Fixtures
|
|||||||
/**
|
/**
|
||||||
* Delete Started
|
* Delete Started
|
||||||
*/
|
*/
|
||||||
$info = Mapper::where('starttime', '<', Carbon::now()->subHours(24))->delete();
|
$info = Mapper::where('starttime', '<', Carbon::now()->subHours(2))->delete();
|
||||||
|
|
||||||
if ($debug) {
|
if ($debug) {
|
||||||
Notice::note("Deleted: $info");
|
Notice::note("Deleted: $info");
|
||||||
|
|||||||
@@ -45,11 +45,10 @@ class Odds
|
|||||||
/**
|
/**
|
||||||
* Delete
|
* Delete
|
||||||
*/
|
*/
|
||||||
$info = Event::where('starttime', '<', Carbon::now()->subMinutes(10))->delete();
|
// $info = Event::where('starttime', '<', Carbon::now()->subMinutes(10))->delete();
|
||||||
|
// if ($debug) {
|
||||||
if ($debug) {
|
// Notice::note("Deleted: $info");
|
||||||
Notice::note("Deleted: $info");
|
// }
|
||||||
}
|
|
||||||
|
|
||||||
switch (Nuh::$options['sport_id']) {
|
switch (Nuh::$options['sport_id']) {
|
||||||
case 1:
|
case 1:
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ class EventResource extends Resource
|
|||||||
->where('sport_id', auth()->user()->sport_id)
|
->where('sport_id', auth()->user()->sport_id)
|
||||||
->orderBy('starttime', 'ASC');
|
->orderBy('starttime', 'ASC');
|
||||||
|
|
||||||
$query->where('starttime', '>=', Carbon::now()->timezone('CET'));
|
$query->where('starttime', '>=', Carbon::now());
|
||||||
|
|
||||||
// if (config('env.app_env') == 'production') {
|
// if (config('env.app_env') == 'production') {
|
||||||
// $query->where('starttime', '>=', Carbon::now()->subHour());
|
// $query->where('starttime', '>=', Carbon::now()->subHour());
|
||||||
|
|||||||
Generated
+5
-5
@@ -4584,16 +4584,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "nesbot/carbon",
|
"name": "nesbot/carbon",
|
||||||
"version": "3.11.2",
|
"version": "3.11.3",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/CarbonPHP/carbon.git",
|
"url": "https://github.com/CarbonPHP/carbon.git",
|
||||||
"reference": "57d696f4ec76d8560cc13b9d16ec01afc4379d04"
|
"reference": "6a7e652845bb018c668220c2a545aded8594fbbf"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/CarbonPHP/carbon/zipball/57d696f4ec76d8560cc13b9d16ec01afc4379d04",
|
"url": "https://api.github.com/repos/CarbonPHP/carbon/zipball/6a7e652845bb018c668220c2a545aded8594fbbf",
|
||||||
"reference": "57d696f4ec76d8560cc13b9d16ec01afc4379d04",
|
"reference": "6a7e652845bb018c668220c2a545aded8594fbbf",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -4685,7 +4685,7 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2026-03-10T21:43:48+00:00"
|
"time": "2026-03-11T17:23:39+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "nette/php-generator",
|
"name": "nette/php-generator",
|
||||||
|
|||||||
Reference in new issue
Block a user