From f9ed8f16ac942b3a4964043bc2bf47981c1c82e5 Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Thu, 13 Nov 2025 20:08:15 -0800 Subject: [PATCH] Bind methods and log errors for missing keys --- .../shuttle/eta/RedisSelfUpdatingETARepository.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/repositories/shuttle/eta/RedisSelfUpdatingETARepository.ts b/src/repositories/shuttle/eta/RedisSelfUpdatingETARepository.ts index 9481331..a841bc2 100644 --- a/src/repositories/shuttle/eta/RedisSelfUpdatingETARepository.ts +++ b/src/repositories/shuttle/eta/RedisSelfUpdatingETARepository.ts @@ -26,6 +26,9 @@ export class RedisSelfUpdatingETARepository extends BaseRedisETARepository imple this.startListeningForUpdates = this.startListeningForUpdates.bind(this); this.handleShuttleWillArriveAtStop = this.handleShuttleWillArriveAtStop.bind(this); this.handleShuttleUpdate = this.handleShuttleUpdate.bind(this); + this.updateCascadingEta = this.updateCascadingEta.bind(this); + this.getAverageTravelTimeSecondsWithFallbacks = this.getAverageTravelTimeSecondsWithFallbacks.bind(this); + this.removeEtaIfExists = this.removeEtaIfExists.bind(this); } private createHistoricalEtaTimeSeriesKey = (routeId: string, fromStopId: string, toStopId: string) => { @@ -63,7 +66,7 @@ export class RedisSelfUpdatingETARepository extends BaseRedisETARepository imple return; } catch (error) { - console.warn(`Failed to get average travel time: ${error instanceof Error ? error.message : String(error)}`); + console.warn(`Failed to get average travel time for ${timeSeriesKey}: ${error instanceof Error ? error.message : String(error)}`); return; } }