This commit is contained in:
salam committed 2026-02-22 18:17:33 +01:00
1 parent 66e26323a4
commit 916fbbc3b2
2 files changed
+1 -7

No files matched your search

+1 -4
View File
@@ -5,7 +5,6 @@ namespace App\Livewire\Mapper;
use App\Models\Element;
use App\Models\Event;
use App\Models\Mapper;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Auth;
class LoadEvents
@@ -29,7 +28,6 @@ class LoadEvents
->with('home')
->with('away')
->where('sport_id', auth()->user()->sport_id)
->whereDate('starttime', '>', Carbon::now()->subHours(6))
->where(function ($query) use ($element_ids) {
$query->orWhereIn('home_id', $element_ids)->orWhereIn('away_id', $element_ids);
});
@@ -37,8 +35,7 @@ class LoadEvents
$query = Event::query()
->with('home')
->with('away')
->where('sport_id', auth()->user()->sport_id)
->whereDate('starttime', '>', Carbon::now()->subHours(6));
->where('sport_id', auth()->user()->sport_id);
}
switch (Auth::user()->provider_id) {