Rename internal method to something more representative of if

This commit is contained in:
2025-11-10 19:35:21 -08:00
parent a3854aab6d
commit c9cbde7a78

View File

@@ -430,7 +430,7 @@ export class RedisShuttleRepository extends EventEmitter implements ShuttleGette
const key = this.createShuttleKey(shuttle.id); const key = this.createShuttleKey(shuttle.id);
await this.redisClient.hSet(key, this.createRedisHashFromShuttle(shuttle)); await this.redisClient.hSet(key, this.createRedisHashFromShuttle(shuttle));
await this.updateHistoricalEtasForShuttle(shuttle, travelTimeTimestamp); await this.updateLastStopArrivalAndTravelTimeDataPoints(shuttle, travelTimeTimestamp);
await this.updateEtasBasedOnHistoricalData(shuttle, referenceCurrentTime); await this.updateEtasBasedOnHistoricalData(shuttle, referenceCurrentTime);
} }
@@ -469,7 +469,7 @@ export class RedisShuttleRepository extends EventEmitter implements ShuttleGette
}); });
} }
private async updateHistoricalEtasForShuttle( private async updateLastStopArrivalAndTravelTimeDataPoints(
shuttle: IShuttle, shuttle: IShuttle,
travelTimeTimestamp = Date.now(), travelTimeTimestamp = Date.now(),
) { ) {