From 527e691157b3767eec7a4a4d7492ea41fdf1841d Mon Sep 17 00:00:00 2001 From: Bianca Widstam Date: Mon, 27 Jan 2025 09:53:39 +0000 Subject: [PATCH] Merged in fix/bookingCode-optional (pull request #1214) fix: bookingCode optional * fix: bookingCode optional Approved-by: Pontus Dreij --- server/routers/hotels/query.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/routers/hotels/query.ts b/server/routers/hotels/query.ts index 907d80cea..352441642 100644 --- a/server/routers/hotels/query.ts +++ b/server/routers/hotels/query.ts @@ -216,7 +216,7 @@ export const hotelQueryRouter = router({ roomStayEndDate, adults, ...(children && { children }), - bookingCode, + ...(bookingCode && { bookingCode }), language: apiLang, } hotelsAvailabilityCounter.add(1, { @@ -452,7 +452,7 @@ export const hotelQueryRouter = router({ roomStayEndDate, adults, ...(children && { children }), - bookingCode, + ...(bookingCode && { bookingCode }), language: toApiLang(ctx.lang), }