mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
fix incorrect ID used for eta filter
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user