Skip to content

Commit

Permalink
fixed booking error
Browse files Browse the repository at this point in the history
  • Loading branch information
blt950 committed Mar 1, 2024
1 parent c43db8b commit a2788d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/BookingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit a2788d9

Please sign in to comment.