feat(sw-452): added language to availabily call to get correct currency
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user