diff --git a/server/routers/hotels/query.ts b/server/routers/hotels/query.ts index fade6fcde..05d72c5db 100644 --- a/server/routers/hotels/query.ts +++ b/server/routers/hotels/query.ts @@ -223,17 +223,35 @@ export const hotelQueryRouter = router({ get: serviceProcedure .input(getAvailabilityInputSchema) .query(async ({ input, ctx }) => { - const { cityId, roomStayStartDate, roomStayEndDate, adults } = input - const params: Record = { + const { + cityId, roomStayStartDate, roomStayEndDate, adults, + children, + promotionCode, + reservationProfileType, + attachedProfileId, + } = input + // TODO: remove undefined type from params + const params: Record = { + roomStayStartDate, + roomStayEndDate, + adults, + children, + promotionCode, + reservationProfileType, + attachedProfileId, } availabilityCounter.add(1, { cityId, roomStayStartDate, roomStayEndDate, adults, + children, + promotionCode, + reservationProfileType, + attachedProfileId, }) console.info( "api.hotels.availability start", @@ -256,6 +274,10 @@ export const hotelQueryRouter = router({ roomStayStartDate, roomStayEndDate, adults, + children, + promotionCode, + reservationProfileType, + attachedProfileId, error_type: "http_error", error: JSON.stringify({ status: apiResponse.status, @@ -285,6 +307,10 @@ export const hotelQueryRouter = router({ roomStayStartDate, roomStayEndDate, adults, + children, + promotionCode, + reservationProfileType, + attachedProfileId, error_type: "validation_error", error: JSON.stringify(validateAvailabilityData.error), }) @@ -302,6 +328,10 @@ export const hotelQueryRouter = router({ roomStayStartDate, roomStayEndDate, adults, + children, + promotionCode, + reservationProfileType, + attachedProfileId, }) console.info( JSON.stringify({