From 9265e576eb1f04123e8c58e5954a6bc1cc286fa5 Mon Sep 17 00:00:00 2001 From: salam Date: Sun, 22 Feb 2026 18:14:35 +0100 Subject: [PATCH] wip --- app/Console/Commands/Grapper/Betsapi/Fixtures.php | 2 +- app/Livewire/Mapper/LoadEvents.php | 4 ++-- app/Livewire/Mapper/LoadProvider.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Console/Commands/Grapper/Betsapi/Fixtures.php b/app/Console/Commands/Grapper/Betsapi/Fixtures.php index dd992cde..c4895453 100644 --- a/app/Console/Commands/Grapper/Betsapi/Fixtures.php +++ b/app/Console/Commands/Grapper/Betsapi/Fixtures.php @@ -25,7 +25,7 @@ class Fixtures * Delete Started */ // XXX - // $info = Mapper::whereDate('starttime', '<', Carbon::now()->subHours(3))->delete(); + // $info = Mapper::whereDate('starttime', '<', Carbon::now()->subHours(12))->delete(); if ($debug) { Notice::note("Deleted: $info"); diff --git a/app/Livewire/Mapper/LoadEvents.php b/app/Livewire/Mapper/LoadEvents.php index 7461ac50..2e9c3804 100644 --- a/app/Livewire/Mapper/LoadEvents.php +++ b/app/Livewire/Mapper/LoadEvents.php @@ -29,7 +29,7 @@ class LoadEvents ->with('home') ->with('away') ->where('sport_id', auth()->user()->sport_id) - ->whereDate('starttime', '>', Carbon::now()) + ->whereDate('starttime', '>', Carbon::now()->subHours(6)) ->where(function ($query) use ($element_ids) { $query->orWhereIn('home_id', $element_ids)->orWhereIn('away_id', $element_ids); }); @@ -38,7 +38,7 @@ class LoadEvents ->with('home') ->with('away') ->where('sport_id', auth()->user()->sport_id) - ->whereDate('starttime', '>', Carbon::now()); + ->whereDate('starttime', '>', Carbon::now()->subHours(6)); } switch (Auth::user()->provider_id) { diff --git a/app/Livewire/Mapper/LoadProvider.php b/app/Livewire/Mapper/LoadProvider.php index 890065fa..454be930 100644 --- a/app/Livewire/Mapper/LoadProvider.php +++ b/app/Livewire/Mapper/LoadProvider.php @@ -33,7 +33,7 @@ class LoadProvider } else { return Mapper::query() - ->whereDate('starttime', '>', Carbon::now()->subHours(5)) + ->whereDate('starttime', '>', Carbon::now()->subHours(12)) ->where('sport_id', auth()->user()->sport_id) ->where('provider_id', auth()->user()->provider_id); }