From 95e8c5ff6c3b1eb91294dfc938f7b05deac5a726 Mon Sep 17 00:00:00 2001 From: Bianca Widstam Date: Mon, 27 Jan 2025 12:16:32 +0000 Subject: [PATCH] Merged in fix/add-lang-to-availability-call (pull request #1210) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix/SW-1514/add-lang-to-availability-call * fix/add-lang-to-availability-call Approved-by: Pontus Dreij Approved-by: Matilda Landström --- 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 472da018c..c3d24b62b 100644 --- a/server/routers/hotels/query.ts +++ b/server/routers/hotels/query.ts @@ -322,6 +322,8 @@ export const hotelQueryRouter = router({ rooms: serviceProcedure .input(getRoomsAvailabilityInputSchema) .query(async ({ input, ctx }) => { + const { lang } = ctx + const apiLang = toApiLang(lang) const { hotelId, roomStayStartDate, @@ -338,6 +340,7 @@ export const hotelQueryRouter = router({ adults, ...(children && { children }), ...(bookingCode && { bookingCode }), + language: apiLang, } roomsAvailabilityCounter.add(1, {