From 545062e364db6b989e30f2b33c833bd4de651286 Mon Sep 17 00:00:00 2001 From: amy-corson-ibigroup <115499534+amy-corson-ibigroup@users.noreply.github.com> Date: Wed, 4 Oct 2023 08:48:05 -0500 Subject: [PATCH] feat(core-utils): Add gtfsId to GraphQL query --- packages/core-utils/src/itinerary.ts | 2 +- packages/core-utils/src/planQuery.graphql | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core-utils/src/itinerary.ts b/packages/core-utils/src/itinerary.ts index 42363ff1c..602dc9061 100644 --- a/packages/core-utils/src/itinerary.ts +++ b/packages/core-utils/src/itinerary.ts @@ -670,7 +670,7 @@ export const convertGraphQLResponseToLegacy = (leg: any): any => ({ }, route: leg.route?.shortName, routeColor: leg.route?.color, - routeId: leg.route?.id, + routeId: leg.route?.gtfsId, routeLongName: leg.route?.longName, routeShortName: leg.route?.shortName, routeTextColor: leg.route?.textColor, diff --git a/packages/core-utils/src/planQuery.graphql b/packages/core-utils/src/planQuery.graphql index 3aa7d4372..eefd74dc6 100644 --- a/packages/core-utils/src/planQuery.graphql +++ b/packages/core-utils/src/planQuery.graphql @@ -157,6 +157,7 @@ query Plan( id } color + gtfsId id longName shortName