From 28c3e2f5f51e2e3397acf5c6dd65a125c914f860 Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Sun, 6 Apr 2025 11:37:53 -0700 Subject: [PATCH] fix incorrect id passed into find system method for stop resolvers --- src/resolvers/StopResolvers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resolvers/StopResolvers.ts b/src/resolvers/StopResolvers.ts index 89f6444..0c3ea54 100644 --- a/src/resolvers/StopResolvers.ts +++ b/src/resolvers/StopResolvers.ts @@ -4,14 +4,14 @@ import { ServerContext } from "../ServerContext"; export const StopResolvers: Resolvers = { Stop: { orderedStops: async (parent, args, contextValue, _info) => { - const system = contextValue.findSystemById(parent.id); + const system = contextValue.findSystemById(parent.systemId); if (!system) { return []; } return await system.shuttleRepository.getOrderedStopsByStopId(parent.id); }, etas: async (parent, args, contextValue, _info) => { - const system = contextValue.findSystemById(parent.id); + const system = contextValue.findSystemById(parent.systemId); if (!system) { return []; }