feat: SW-2028 Removed session passing
This commit is contained in:
@@ -77,12 +77,6 @@ async function fetchAvailableHotels(input: AvailabilityInput) {
|
||||
return await serverClient().hotel.availability.hotelsByCity(input)
|
||||
}
|
||||
|
||||
async function fetchAvailableHotelsWithRedemption(input: AvailabilityInput) {
|
||||
return await serverClient().hotel.availability.hotelsByCityWithRedemption(
|
||||
input
|
||||
)
|
||||
}
|
||||
|
||||
async function fetchBookingCodeAvailableHotels(input: AvailabilityInput) {
|
||||
return await serverClient().hotel.availability.hotelsByCityWithBookingCode(
|
||||
input
|
||||
@@ -198,22 +192,6 @@ export async function getHotels(
|
||||
})
|
||||
})
|
||||
)
|
||||
} else if (redemption) {
|
||||
availableHotelsResponse = await Promise.allSettled(
|
||||
booking.rooms.map(
|
||||
async (room) =>
|
||||
await fetchAvailableHotelsWithRedemption({
|
||||
adults: room.adults,
|
||||
children: room.childrenInRoom
|
||||
? generateChildrenString(room.childrenInRoom)
|
||||
: undefined,
|
||||
cityId: city.id,
|
||||
redemption,
|
||||
roomStayEndDate: booking.toDate,
|
||||
roomStayStartDate: booking.fromDate,
|
||||
})
|
||||
)
|
||||
)
|
||||
} else {
|
||||
availableHotelsResponse = await Promise.allSettled(
|
||||
booking.rooms.map(
|
||||
|
||||
Reference in New Issue
Block a user