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