From a2788d959a50681b8041fba70bfbc09358e12df8 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 1 Mar 2024 18:56:00 +0100 Subject: [PATCH] fixed booking error --- app/Http/Controllers/BookingController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/BookingController.php b/app/Http/Controllers/BookingController.php index fdf400c12..587e1055c 100644 --- a/app/Http/Controllers/BookingController.php +++ b/app/Http/Controllers/BookingController.php @@ -44,7 +44,7 @@ private function getBookablePositions(User $user) } else { $activeAreas = $user->atcActivity->pluck('area_id'); - $positionsInAreas = Position::whereIn('area', $activeAreas)->where('rating', '<=', $user->rating)->get(); + $positionsInAreas = Position::whereIn('area_id', $activeAreas)->where('rating', '<=', $user->rating)->get(); $positions = $positions->merge($positionsInAreas); } }