mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +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);
|
await this.updateEtasForSystemIfTTL(systemId);
|
||||||
|
|
||||||
if (this.cache?.etasForStopId && this.cache.etasForStopId[systemId]) {
|
if (this.cache?.etasForStopId && this.cache.etasForStopId[stopId]) {
|
||||||
const etas = this.cache.etasForStopId[systemId];
|
const etas = this.cache.etasForStopId[stopId];
|
||||||
const foundEta = etas.find((eta) => eta.stopId === stopId);
|
const foundEta = etas.find((eta) => eta.stopId === stopId);
|
||||||
if (foundEta) {
|
if (foundEta) {
|
||||||
return foundEta;
|
return foundEta;
|
||||||
|
|||||||
Reference in New Issue
Block a user