remove required parking structure and add stub resolvers

This commit is contained in:
2025-04-08 16:28:21 -07:00
parent b2e6acfefa
commit 78514c5b8a
2 changed files with 9 additions and 3 deletions

View File

@@ -70,13 +70,19 @@ export const SystemResolvers: Resolvers<ServerContext> = {
return shuttle;
},
shuttles: async (parent, args, contextValue, _info) => {
shuttles: async (parent, _args, contextValue, _info) => {
const system = contextValue.findSystemById(parent.id);
if (!system) {
return [];
}
return await system.shuttleRepository.getShuttles();
}
},
parkingStructures: async (_parent, _args, _contextValue, _info) => {
return [];
},
parkingStructure: async (_parent, _args, _contextValue, _info) => {
return null;
},
},
}