diff --git a/app/Models/Event.php b/app/Models/Event.php index e351228f..022a267e 100644 --- a/app/Models/Event.php +++ b/app/Models/Event.php @@ -2,7 +2,6 @@ namespace App\Models; -use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Prunable; use Illuminate\Support\Facades\Auth; @@ -36,9 +35,9 @@ class Event extends Model /** * Get the prunable model query. */ - public function prunable(): Builder + public function prunable() { - return static::where('starttime', '<', now()->subHour(5)); + return static::where('starttime', '<', now()->subHours(5)); } public function provider() diff --git a/app/Models/StatisticFixtures.php b/app/Models/StatisticFixtures.php index f19c9805..a1a52b88 100644 --- a/app/Models/StatisticFixtures.php +++ b/app/Models/StatisticFixtures.php @@ -3,9 +3,12 @@ namespace App\Models; use Illuminate\Database\Eloquent\Model; +use Illuminate\Database\Eloquent\Prunable; +use Illuminate\Support\Carbon; class StatisticFixtures extends Model { + use Prunable; protected $fillable = [ 'sport_id', 'league_id', @@ -23,6 +26,14 @@ class StatisticFixtures extends Model ]; } + /** + * Get the prunable model query. + */ + public function prunable() + { + return static::where('starttime', '<', Carbon::now('Europe/Vienna')->subMinutes(15)); + } + public function sport() { diff --git a/composer.lock b/composer.lock index 881aecbc..44ad777d 100644 --- a/composer.lock +++ b/composer.lock @@ -4705,24 +4705,24 @@ }, { "name": "mongodb/mongodb", - "version": "2.3.0", + "version": "2.2.0", "source": { "type": "git", - "url": "https://github.com/mongodb/mongo-php-library", - "reference": "12e56461166d915e3dd8e4969ad0940ed5207d88" + "url": "https://github.com/mongodb/mongo-php-library.git", + "reference": "bbb13f969e37e047fd822527543df55fdc1c9298" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mongodb/mongo-php-library/zipball/12e56461166d915e3dd8e4969ad0940ed5207d88", - "reference": "12e56461166d915e3dd8e4969ad0940ed5207d88", + "url": "https://api.github.com/repos/mongodb/mongo-php-library/zipball/bbb13f969e37e047fd822527543df55fdc1c9298", + "reference": "bbb13f969e37e047fd822527543df55fdc1c9298", "shasum": "" }, "require": { "composer-runtime-api": "^2.0", - "ext-mongodb": "^2.3", + "ext-mongodb": "^2.2", "php": "^8.1", "psr/log": "^1.1.4|^2|^3", - "symfony/polyfill-php85": "^1.33" + "symfony/polyfill-php85": "^1.32" }, "replace": { "mongodb/builder": "*" @@ -4774,7 +4774,11 @@ "mongodb", "persistence" ], - "time": "2026-04-28T12:50:06+00:00" + "support": { + "issues": "https://github.com/mongodb/mongo-php-library/issues", + "source": "https://github.com/mongodb/mongo-php-library/tree/2.2.0" + }, + "time": "2026-02-11T11:39:56+00:00" }, { "name": "monolog/monolog",