feat(sw-452): added language to availabily call to get correct currency

This commit is contained in:
Pontus Dreij
2024-10-17 10:17:57 +02:00
parent fce9ef1b61
commit f25af8382e

View File

@@ -236,6 +236,8 @@ 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 apiLang = toApiLang(lang)
const { const {
cityId, cityId,
roomStayStartDate, roomStayStartDate,
@@ -255,6 +257,7 @@ export const hotelQueryRouter = router({
promotionCode, promotionCode,
reservationProfileType, reservationProfileType,
attachedProfileId, attachedProfileId,
language: apiLang,
} }
hotelsAvailabilityCounter.add(1, { hotelsAvailabilityCounter.add(1, {