Merged in fix/unify-gethotel-input (pull request #1319)
feat: getHotel - unify input to make sure we can use the same cache response * feat: getHotel - unify input to make sure we can use the same cache response Approved-by: Simon.Emanuelsson
This commit is contained in:
@@ -59,7 +59,7 @@ export const ratesInputSchema = z.object({
|
||||
|
||||
export const hotelInputSchema = z.object({
|
||||
hotelId: z.string(),
|
||||
isCardOnlyPayment: z.boolean().default(false),
|
||||
isCardOnlyPayment: z.boolean(),
|
||||
language: z.nativeEnum(Lang),
|
||||
})
|
||||
|
||||
|
||||
@@ -493,7 +493,10 @@ export async function getHotelListData(
|
||||
const hotels = await Promise.all(
|
||||
hotelIds.map(async (hotelId) => {
|
||||
const [hotelData, url] = await Promise.all([
|
||||
getHotel({ hotelId, language: lang }, serviceToken),
|
||||
getHotel(
|
||||
{ hotelId, language: lang, isCardOnlyPayment: false },
|
||||
serviceToken
|
||||
),
|
||||
getHotelPageUrl(lang, hotelId),
|
||||
])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user