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:
Pontus Dreij
2025-03-27 07:35:02 +00:00
parent 1429f7ec32
commit af2bbcddc3
4 changed files with 55 additions and 12 deletions

View File

@@ -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
)