update method calls in TimedApiBasedShuttleRepositoryLoader

This commit is contained in:
2025-04-06 11:23:27 -07:00
parent 8c2fb3a52a
commit 56466964c1
2 changed files with 8 additions and 10 deletions

View File

@@ -47,15 +47,14 @@ export class TimedApiBasedShuttleRepositoryLoader extends ApiBasedShuttleReposit
if (!this.shouldBeRunning) return;
try {
await this.fetchAndUpdateSystemData();
await this.fetchAndUpdateRouteDataForExistingSystemInRepository();
await this.fetchAndUpdateStopAndPolylineDataForRoutesInExistingSystemInRepository();
await this.fetchAndUpdateShuttleDataForExistingSystemInRepository();
await this.fetchAndUpdateRouteDataForSystem();
await this.fetchAndUpdateStopAndPolylineDataForRoutesInSystem();
await this.fetchAndUpdateShuttleDataForSystem();
// Because ETA method doesn't support pruning yet,
// add a call to the clear method here
await this.repository.clearEtaData();
await this.fetchAndUpdateEtaDataForExistingStopsForSystemInRepository();
await this.fetchAndUpdateEtaDataForExistingStopsForSystem();
} catch (e) {
console.error(e);
}