wip
This commit is contained in:
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) {
|
||||
$e = DB::table('event_bookmakers')
|
||||
->selectRaw('count(id) as c, event_id')
|
||||
->whereIn('bookmaker_id', [auth()->user()->bookmaker_id, auth()->user()->partner_bookmaker_id])
|
||||
->where('sport_id', auth()->user()->sport_id)
|
||||
->where('starttime', '>', Carbon::now()->timezone('CET'))
|
||||
->groupBy('event_id')
|
||||
->havingRaw('c = 1')
|
||||
->pluck('event_id')->toArray();
|
||||
// $e = DB::table('event_bookmakers')
|
||||
// ->selectRaw('count(id) as c, event_id')
|
||||
// ->whereIn('bookmaker_id', [auth()->user()->bookmaker_id, auth()->user()->partner_bookmaker_id])
|
||||
// ->where('sport_id', auth()->user()->sport_id)
|
||||
// ->where('starttime', '>', Carbon::now()->timezone('CET'))
|
||||
// ->groupBy('event_id')
|
||||
// ->havingRaw('c = 1')
|
||||
// ->pluck('event_id')->toArray();
|
||||
|
||||
$query->whereIn('id', $e);
|
||||
// $query->whereIn('id', $e);
|
||||
}
|
||||
|
||||
if (isset((EventsTable::$bettype_settings))) {
|
||||
|
||||
Reference in new issue
Block a user