mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
remove nextOrderedStop from Route schema
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user