add system ID to ETA object in graphql schema

This commit is contained in:
2025-04-07 12:40:53 -07:00
parent c8ea822626
commit ea46115b86
2 changed files with 4 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ export const ShuttleResolvers: Resolvers<ServerContext> = {
secondsRemaining: etaForStopId.secondsRemaining,
shuttleId: parent.id,
shuttle: parent,
systemId: system.id,
};
},
etas: async (parent, args, contextValue, info) => {
@@ -35,6 +36,7 @@ export const ShuttleResolvers: Resolvers<ServerContext> = {
stopId,
shuttle: parent,
shuttleId: parent.id,
systemId: system.id,
}
}));
@@ -56,7 +58,7 @@ export const ShuttleResolvers: Resolvers<ServerContext> = {
id: route.id,
name: route.name,
polylineCoordinates: route.polylineCoordinates,
systemId: parent.systemId,
systemId: system.id,
}
}
},