mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-19 08:50:29 +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);
|
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(),
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user