feat(BOOK-463): Fetching hotel filters from CMS and using these inside the destination pages and select hotel page
* feat(BOOK-463): Fetching hotel filters from CMS and using these inside the destination pages * fix(BOOK-698): fetch hotel filters from CMS on select hotel page Approved-by: Bianca Widstam
This commit is contained in:
@@ -203,6 +203,12 @@ export const getHotelsByCityIdentifier = cache(
|
||||
})
|
||||
}
|
||||
)
|
||||
|
||||
export const getHotelFilters = cache(async function getMemoizedHotelFilters() {
|
||||
const caller = await serverClient()
|
||||
return caller.hotel.filters.get()
|
||||
})
|
||||
|
||||
export const getAllHotelData = cache(async function getMemoizedAllHotelData() {
|
||||
const caller = await serverClient()
|
||||
return caller.hotel.hotels.getAllHotelData()
|
||||
|
||||
Reference in New Issue
Block a user