diff --git a/src/repositories/ApiBasedRepository.ts b/src/repositories/ApiBasedRepository.ts index 788e334..e1ca9d1 100644 --- a/src/repositories/ApiBasedRepository.ts +++ b/src/repositories/ApiBasedRepository.ts @@ -73,8 +73,8 @@ export class ApiBasedRepository implements GetterRepository { } await this.updateEtasForSystemIfTTL(systemId); - if (this.cache?.etasForStopId && this.cache.etasForStopId[systemId]) { - const etas = this.cache.etasForStopId[systemId]; + if (this.cache?.etasForStopId && this.cache.etasForStopId[stopId]) { + const etas = this.cache.etasForStopId[stopId]; const foundEta = etas.find((eta) => eta.stopId === stopId); if (foundEta) { return foundEta;