mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
Remove call to addOrUpdateEta within the shuttle repository loader
This commit is contained in:
@@ -261,9 +261,8 @@ export class ApiBasedShuttleRepositoryLoader implements ShuttleRepositoryLoader
|
||||
}
|
||||
|
||||
private async updateEtaDataInRepository(etas: IEta[]) {
|
||||
await Promise.all(etas.map(async (eta) => {
|
||||
await this.repository.addOrUpdateEta(eta);
|
||||
}));
|
||||
// ETAs are now calculated internally by the repository based on shuttle movements
|
||||
// External ETAs from the API are no longer used
|
||||
}
|
||||
|
||||
private async fetchEtaDataJson(stopId: string) {
|
||||
|
||||
Reference in New Issue
Block a user