From a4e359b19be9ff8f2d5b836c8faf93ea172113da Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Wed, 8 Jan 2025 16:50:14 -0800 Subject: [PATCH] update stopByStopId in cache --- src/repositories/ApiBasedRepository.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/repositories/ApiBasedRepository.ts b/src/repositories/ApiBasedRepository.ts index 7a3f423..a2571f8 100644 --- a/src/repositories/ApiBasedRepository.ts +++ b/src/repositories/ApiBasedRepository.ts @@ -357,6 +357,10 @@ ${json}`); if (this.cache.stopsBySystemId) { this.cache.stopsBySystemId[systemId]?.push(constructedStop); } + + if (this.cache.stopByStopId) { + this.cache.stopByStopId[constructedStop.id] = constructedStop; + } })); } } catch (e) {