fix ETA data not loading via repository loader

This commit is contained in:
2025-04-07 13:56:26 -07:00
parent 8e3765abfb
commit 059a9f5067

View File

@@ -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);