add clearEtaData call to repository

This commit is contained in:
2025-01-23 14:24:42 -08:00
parent d0d651eb50
commit 71b3b718ab

View File

@@ -51,6 +51,10 @@ export class TimedApiBasedRepositoryLoader extends ApiBasedRepositoryLoader {
await this.fetchAndUpdateRouteDataForExistingSystemsInRepository();
await this.fetchAndUpdateStopAndPolylineDataForRoutesInExistingSystemsInRepository();
await this.fetchAndUpdateShuttleDataForExistingSystemsInRepository();
// Because ETA method doesn't support pruning yet,
// add a call to the clear method here
await this.repository.clearEtaData();
await this.fetchAndUpdateEtaDataForExistingStopsForSystemsInRepository();
} catch (e) {
console.error(e);