mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-16 23:40:32 +00:00
Rename internal method to something more representative of if
This commit is contained in:
@@ -430,7 +430,7 @@ export class RedisShuttleRepository extends EventEmitter implements ShuttleGette
|
||||
const key = this.createShuttleKey(shuttle.id);
|
||||
await this.redisClient.hSet(key, this.createRedisHashFromShuttle(shuttle));
|
||||
|
||||
await this.updateHistoricalEtasForShuttle(shuttle, travelTimeTimestamp);
|
||||
await this.updateLastStopArrivalAndTravelTimeDataPoints(shuttle, travelTimeTimestamp);
|
||||
await this.updateEtasBasedOnHistoricalData(shuttle, referenceCurrentTime);
|
||||
}
|
||||
|
||||
@@ -469,7 +469,7 @@ export class RedisShuttleRepository extends EventEmitter implements ShuttleGette
|
||||
});
|
||||
}
|
||||
|
||||
private async updateHistoricalEtasForShuttle(
|
||||
private async updateLastStopArrivalAndTravelTimeDataPoints(
|
||||
shuttle: IShuttle,
|
||||
travelTimeTimestamp = Date.now(),
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user