diff --git a/src/repositories/UnoptimizedInMemoryShuttleRepository.ts b/src/repositories/UnoptimizedInMemoryShuttleRepository.ts index 42f3ecc..b8dda6f 100644 --- a/src/repositories/UnoptimizedInMemoryShuttleRepository.ts +++ b/src/repositories/UnoptimizedInMemoryShuttleRepository.ts @@ -16,7 +16,7 @@ export class UnoptimizedInMemoryShuttleRepository implements ShuttleGetterSetter private subscribers: ((eta: IEta) => void)[] = []; public async getStops(): Promise { - 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 { - 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 { - return this.shuttles.filter(shuttle => shuttle.systemId === systemId); + return this.shuttles; } public async getShuttlesByRouteId(routeId: string) {