Skip to content

Commit

Permalink
Merge pull request #652 from ibi-group/fix-coreutils-otp2leg-agencyid
Browse files Browse the repository at this point in the history
fix(core-utils): Set agencyId when converting graphql resp to legacy.
  • Loading branch information
binh-dam-ibigroup authored Sep 1, 2023
2 parents ead295e + 0a32360 commit 0a3762a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core-utils/src/itinerary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,7 @@ const pickupDropoffTypeToOtp1 = otp2Type => {
export const convertGraphQLResponseToLegacy = (leg: any): any => ({
...leg,
agencyBrandingUrl: leg.agency?.url,
agencyId: leg.agency?.id,
agencyName: leg.agency?.name,
agencyUrl: leg.agency?.url,
alightRule: pickupDropoffTypeToOtp1(leg.dropoffType),
Expand Down

0 comments on commit 0a3762a

Please sign in to comment.