Update resolvers to use the ETA repository
This commit is contained in:
@@ -16,7 +16,7 @@ export const StopResolvers: Resolvers<ServerContext> = {
|
||||
if (!system) {
|
||||
return [];
|
||||
}
|
||||
const etas = await system.shuttleRepository.getEtasForStopId(parent.id);
|
||||
const etas = await system.etaRepository.getEtasForStopId(parent.id);
|
||||
return etas.slice().sort((a, b) => a.secondsRemaining - b.secondsRemaining);
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user