mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
fix ETA data not loading via repository loader
This commit is contained in:
@@ -184,7 +184,7 @@ export class ApiBasedShuttleRepositoryLoader implements ShuttleRepositoryLoader
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async fetchAndUpdateEtaDataForExistingStopsForSystem() {
|
public async fetchAndUpdateEtaDataForExistingStopsForSystem() {
|
||||||
const stops = await this.repository.getStopsBySystemId(this.passioSystemId);
|
const stops = await this.repository.getStopsBySystemId(this.systemIdForConstructedData);
|
||||||
await Promise.all(stops.map(async (stop) => {
|
await Promise.all(stops.map(async (stop) => {
|
||||||
let stopId = stop.id;
|
let stopId = stop.id;
|
||||||
await this.fetchAndUpdateEtaDataForStopId(stopId);
|
await this.fetchAndUpdateEtaDataForStopId(stopId);
|
||||||
|
|||||||
Reference in New Issue
Block a user