This commit is contained in:
salam committed 2026-02-27 16:59:00 +01:00
1 parent 3eaf5f6a07
commit 2d18d91909
1 file changed
+9 -9
@@ -98,16 +98,16 @@ class EventResource extends Resource
} }
if (auth()->user()->bookmaker_partner_differences == 1) { if (auth()->user()->bookmaker_partner_differences == 1) {
$e = DB::table('event_bookmakers') // $e = DB::table('event_bookmakers')
->selectRaw('count(id) as c, event_id') // ->selectRaw('count(id) as c, event_id')
->whereIn('bookmaker_id', [auth()->user()->bookmaker_id, auth()->user()->partner_bookmaker_id]) // ->whereIn('bookmaker_id', [auth()->user()->bookmaker_id, auth()->user()->partner_bookmaker_id])
->where('sport_id', auth()->user()->sport_id) // ->where('sport_id', auth()->user()->sport_id)
->where('starttime', '>', Carbon::now()->timezone('CET')) // ->where('starttime', '>', Carbon::now()->timezone('CET'))
->groupBy('event_id') // ->groupBy('event_id')
->havingRaw('c = 1') // ->havingRaw('c = 1')
->pluck('event_id')->toArray(); // ->pluck('event_id')->toArray();
$query->whereIn('id', $e); // $query->whereIn('id', $e);
} }
if (isset((EventsTable::$bettype_settings))) { if (isset((EventsTable::$bettype_settings))) {