mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
update implementation of repository to get all entities
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user