mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
fix filtering statement within getEtaForShuttleAndStopId
This commit is contained in:
@@ -83,7 +83,7 @@ export class ApiBasedRepository implements GetterRepository {
|
||||
|
||||
if (this.cache?.etasForStopId && this.cache.etasForStopId[stopId]) {
|
||||
const etas = this.cache.etasForStopId[stopId];
|
||||
const foundEta = etas.find((eta) => eta.stopId === stopId);
|
||||
const foundEta = etas.find((eta) => eta.shuttleId === shuttleId);
|
||||
if (foundEta) {
|
||||
return foundEta;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user