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
|
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, {
|
||||||
|
|||||||
Reference in New Issue
Block a user