remove nextOrderedStop from Route schema

This commit is contained in:
2024-12-22 19:51:14 -08:00
parent 4d904bab10
commit 2ca9551bfa
2 changed files with 0 additions and 9 deletions

View File

@@ -88,14 +88,6 @@ export const resolvers: Resolvers<ServerContext> = {
}
},
Route: {
nextOrderedStop: (parent, args, contextValue, info) => {
const orderedStop = parent.orderedStops?.find((orderedStop) => orderedStop.stop?.id === args.forStopId);
if (!orderedStop || !orderedStop.nextStop) {
return null;
}
return orderedStop.nextStop;
},
},
Shuttle: {
eta: (parent, args, contextValue, info) => {