mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +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.updateStopAndPolylineDataForRoutesInSystem();
|
||||||
await this.updateShuttleDataForSystemBasedOnProximityToRoutes();
|
await this.updateShuttleDataForSystemBasedOnProximityToRoutes();
|
||||||
|
|
||||||
// Because ETA method doesn't support pruning yet,
|
if (this.etaRepository) {
|
||||||
// add a call to the clear method here
|
await this.updateEtaDataForExistingStopsForSystem();
|
||||||
await this.updateEtaDataForExistingStopsForSystem();
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async updateRouteDataForSystem() {
|
public async updateRouteDataForSystem() {
|
||||||
|
|||||||
Reference in New Issue
Block a user