Merged in fix(SW-2057)-My-stay-crashes-when-at-least-2-children-has-the-same-bed-type (pull request #1649)
feat(SW-2057) Fixed issues with age:bedType for children and that you couldn't check for availability in MyStay * feat(SW-2057) Fixed issues with age:bedType for children and that you couldn't check for availability in MyStay Approved-by: Niclas Edenvin
This commit is contained in:
@@ -593,8 +593,11 @@ export const getRoomAvailability = async (
|
||||
counterRateCode,
|
||||
roomTypeCode,
|
||||
redemption,
|
||||
inputLang,
|
||||
} = input
|
||||
|
||||
const language = inputLang ?? lang
|
||||
|
||||
const params: Record<string, string | number | undefined> = {
|
||||
roomStayStartDate,
|
||||
roomStayEndDate,
|
||||
@@ -602,7 +605,7 @@ export const getRoomAvailability = async (
|
||||
...(children && { children }),
|
||||
...(bookingCode && { bookingCode }),
|
||||
...(redemption && { isRedemption: "true" }),
|
||||
language: toApiLang(lang),
|
||||
language: toApiLang(language),
|
||||
}
|
||||
|
||||
metrics.selectedRoomAvailability.counter.add(1, {
|
||||
@@ -685,7 +688,7 @@ export const getRoomAvailability = async (
|
||||
{
|
||||
hotelId,
|
||||
isCardOnlyPayment: false,
|
||||
language: lang,
|
||||
language,
|
||||
},
|
||||
serviceToken ?? token
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user