forked from Somnia/SomniaRooms
API - Search Prices - Added RoomPrices
This commit is contained in:
@@ -162,11 +162,7 @@ class SearchRoomsController extends AbstractController
|
||||
);
|
||||
}
|
||||
|
||||
$fareList = $priceService->getFinalPricesForSearch($roomCategory, $searchRequest->startDate, $searchRequest->endDate);
|
||||
$rs = [];
|
||||
foreach ($fareList as $key => $value) {
|
||||
$rs[] = ["guestNumber" => $key, "price" => $value];
|
||||
}
|
||||
$rs = $priceService->getFinalPricesForSearch($roomCategory, $searchRequest->startDate, $searchRequest->endDate);
|
||||
|
||||
return $this->json(["results" => $rs]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user