mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
add systemId to ordered stop and route resolvers
This commit is contained in:
@@ -24,6 +24,7 @@ export const OrderedStopResolvers: Resolvers<ServerContext> = {
|
|||||||
route: parent.route,
|
route: parent.route,
|
||||||
routeId: parent.routeId,
|
routeId: parent.routeId,
|
||||||
stopId: nextOrderedStopObject.id,
|
stopId: nextOrderedStopObject.id,
|
||||||
|
systemId: system.id,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
previousStop: async (parent, args, contextValue, _info): Promise<OrderedStop | null> => {
|
previousStop: async (parent, args, contextValue, _info): Promise<OrderedStop | null> => {
|
||||||
@@ -47,6 +48,7 @@ export const OrderedStopResolvers: Resolvers<ServerContext> = {
|
|||||||
route: parent.route,
|
route: parent.route,
|
||||||
routeId: parent.routeId,
|
routeId: parent.routeId,
|
||||||
stopId: previousOrderedStopObject.id,
|
stopId: previousOrderedStopObject.id,
|
||||||
|
systemId: system.id,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
stop: async (parent, args, contextValue, _info) => {
|
stop: async (parent, args, contextValue, _info) => {
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ export const RouteResolvers: Resolvers<ServerContext> = {
|
|||||||
stopId: args.forStopId,
|
stopId: args.forStopId,
|
||||||
routeId: parent.id,
|
routeId: parent.id,
|
||||||
route: parent,
|
route: parent,
|
||||||
|
systemId: system.id,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user