From f25af8382eb1f4ab5f75aef5ec347764f4f3a225 Mon Sep 17 00:00:00 2001 From: Pontus Dreij Date: Thu, 17 Oct 2024 10:17:57 +0200 Subject: [PATCH] feat(sw-452): added language to availabily call to get correct currency --- server/routers/hotels/query.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/routers/hotels/query.ts b/server/routers/hotels/query.ts index 198219e0e..9c07fd2e3 100644 --- a/server/routers/hotels/query.ts +++ b/server/routers/hotels/query.ts @@ -236,6 +236,8 @@ export const hotelQueryRouter = router({ hotels: serviceProcedure .input(getHotelsAvailabilityInputSchema) .query(async ({ input, ctx }) => { + const { lang, uid } = ctx + const apiLang = toApiLang(lang) const { cityId, roomStayStartDate, @@ -255,6 +257,7 @@ export const hotelQueryRouter = router({ promotionCode, reservationProfileType, attachedProfileId, + language: apiLang, } hotelsAvailabilityCounter.add(1, {