feat(sw-452): added children
This commit is contained in:
@@ -20,6 +20,7 @@ export default async function SelectRatePage({
|
||||
const selecetRoomParamsObject =
|
||||
getHotelReservationQueryParams(selecetRoomParams)
|
||||
const adults = selecetRoomParamsObject.room[0].adults // TODO: Handle multiple rooms
|
||||
const children = selecetRoomParamsObject.room[0].child.length // TODO: Handle multiple rooms
|
||||
|
||||
const [hotelData, roomConfigurations, user] = await Promise.all([
|
||||
serverClient().hotel.hotelData.get({
|
||||
@@ -32,6 +33,7 @@ export default async function SelectRatePage({
|
||||
roomStayStartDate: searchParams.fromDate,
|
||||
roomStayEndDate: searchParams.toDate,
|
||||
adults: adults,
|
||||
children: children,
|
||||
}),
|
||||
getProfileSafely(),
|
||||
])
|
||||
|
||||
@@ -236,7 +236,7 @@ export const hotelQueryRouter = router({
|
||||
hotels: serviceProcedure
|
||||
.input(getHotelsAvailabilityInputSchema)
|
||||
.query(async ({ input, ctx }) => {
|
||||
const { lang, uid } = ctx
|
||||
const { lang } = ctx
|
||||
const apiLang = toApiLang(lang)
|
||||
const {
|
||||
cityId,
|
||||
|
||||
Reference in New Issue
Block a user