API - Search Prices - Added RoomPrices

This commit is contained in:
2025-10-21 19:58:00 +02:00
parent f703727ccb
commit c9e1f95c81
5 changed files with 287 additions and 65 deletions
+1 -5
View File
@@ -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]);
}