feat: update getHotel to use real hotel api endpoint, support for service tokens, type modifications
This commit is contained in:
@@ -18,14 +18,20 @@ export default async function SelectHotelPage({
|
||||
const intl = await getIntl()
|
||||
setLang(params.lang)
|
||||
|
||||
const { attributes } = await serverClient().hotel.getHotel({
|
||||
hotelId: "d98c7ab1-ebaa-4102-b351-758daf1ddf55",
|
||||
const hotelData = await serverClient().hotel.getHotel({
|
||||
hotelId: "879",
|
||||
language: getLang(),
|
||||
})
|
||||
|
||||
if (!hotelData) {
|
||||
return null
|
||||
}
|
||||
|
||||
const { attributes } = hotelData
|
||||
const hotels = [attributes]
|
||||
|
||||
const hotelFilters = await serverClient().hotel.getFilters({
|
||||
hotelId: "d98c7ab1-ebaa-4102-b351-758daf1ddf55",
|
||||
hotelId: "879",
|
||||
})
|
||||
|
||||
const tempSearchTerm = "Stockholm"
|
||||
|
||||
Reference in New Issue
Block a user