update implementation of repository to get all entities

This commit is contained in:
2025-04-07 19:18:30 -07:00
parent b6f3e4ccde
commit 4f855a8225

View File

@@ -16,7 +16,7 @@ export class UnoptimizedInMemoryShuttleRepository implements ShuttleGetterSetter
private subscribers: ((eta: IEta) => void)[] = [];
public async getStops(): Promise<IStop[]> {
return this.stops.filter(stop => stop.systemId === systemId);
return this.stops;
}
public async getStopById(stopId: string) {
@@ -24,7 +24,7 @@ export class UnoptimizedInMemoryShuttleRepository implements ShuttleGetterSetter
}
public async getRoutes(): Promise<IRoute[]> {
return this.routes.filter(route => route.systemId === systemId);
return this.routes;
}
public async getRouteById(routeId: string) {
@@ -32,7 +32,7 @@ export class UnoptimizedInMemoryShuttleRepository implements ShuttleGetterSetter
}
public async getShuttles(): Promise<IShuttle[]> {
return this.shuttles.filter(shuttle => shuttle.systemId === systemId);
return this.shuttles;
}
public async getShuttlesByRouteId(routeId: string) {