Skip to content

Commit

Permalink
fix: adapted to kiwi API updates
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrilDesch committed Oct 20, 2024
1 parent e4fdfd9 commit 752a504
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/services/tripService.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const searchTransportations = async ({
vehicle_type: "aircraft,bus,train",
adults: adultsNumber,
children: childrenNumber,
partner_market: "us",
limit: 1000,
one_for_city: 1,
ret_to_diff_airport: false,
Expand Down Expand Up @@ -71,7 +72,7 @@ export const bulkSearchTransportationsAndFormatTrips = async ({
const citiesBatch = cities.slice(start, end);
promises.push(
searchTransportations({
cities: citiesBatch.map((destination) => destination.slug).join(","),
cities: citiesBatch.map((destination) => destination.code).join(","),
startDate: format(startDate, "yyyy-MM-dd"),
endDate: format(endDate, "yyyy-MM-dd"),
locale,
Expand Down

0 comments on commit 752a504

Please sign in to comment.