mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-19 08:50:29 +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[]) {
|
private async updateEtaDataInRepository(etas: IEta[]) {
|
||||||
await Promise.all(etas.map(async (eta) => {
|
// ETAs are now calculated internally by the repository based on shuttle movements
|
||||||
await this.repository.addOrUpdateEta(eta);
|
// External ETAs from the API are no longer used
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private async fetchEtaDataJson(stopId: string) {
|
private async fetchEtaDataJson(stopId: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user