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
.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, {