mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-16 23:40:32 +00:00
Only update ETAs in shuttle repository loader if repository was injected
This commit is contained in:
@@ -37,9 +37,9 @@ export class ApiBasedShuttleRepositoryLoader implements ShuttleRepositoryLoader
|
||||
await this.updateStopAndPolylineDataForRoutesInSystem();
|
||||
await this.updateShuttleDataForSystemBasedOnProximityToRoutes();
|
||||
|
||||
// Because ETA method doesn't support pruning yet,
|
||||
// add a call to the clear method here
|
||||
await this.updateEtaDataForExistingStopsForSystem();
|
||||
if (this.etaRepository) {
|
||||
await this.updateEtaDataForExistingStopsForSystem();
|
||||
}
|
||||
}
|
||||
|
||||
public async updateRouteDataForSystem() {
|
||||
|
||||
Reference in New Issue
Block a user