feat(SW-614): Add mustBeGuaranteed flag and update content based on this
This commit is contained in:
@@ -60,6 +60,26 @@ export const getHotelData = cache(async function getMemoizedHotelData(
|
||||
})
|
||||
})
|
||||
|
||||
export const getRoomAvailability = cache(
|
||||
async function getMemoizedRoomAvailability(
|
||||
hotelId: string,
|
||||
adults: number,
|
||||
roomStayStartDate: string,
|
||||
roomStayEndDate: string,
|
||||
children?: number,
|
||||
promotionCode?: string
|
||||
) {
|
||||
return serverClient().hotel.availability.rooms({
|
||||
hotelId: parseInt(hotelId),
|
||||
adults,
|
||||
roomStayStartDate,
|
||||
roomStayEndDate,
|
||||
children,
|
||||
promotionCode,
|
||||
})
|
||||
}
|
||||
)
|
||||
|
||||
export const getFooter = cache(async function getMemoizedFooter() {
|
||||
return serverClient().contentstack.base.footer()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user