mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-19 08:50:29 +00:00
Remove behavior of ETA clearing when shuttle is approaching stop
This commit is contained in:
@@ -182,11 +182,6 @@ export class RedisSelfUpdatingETARepository extends BaseRedisETARepository imple
|
|||||||
lastArrival,
|
lastArrival,
|
||||||
currentArrival,
|
currentArrival,
|
||||||
}: WillArriveAtStopPayload) {
|
}: WillArriveAtStopPayload) {
|
||||||
const etas = await this.getEtasForShuttleId(currentArrival.shuttleId);
|
|
||||||
for (const eta of etas) {
|
|
||||||
await this.removeEtaIfExists(eta.shuttleId, eta.stopId);
|
|
||||||
}
|
|
||||||
|
|
||||||
// only update time traveled if last arrival exists
|
// only update time traveled if last arrival exists
|
||||||
if (lastArrival) {
|
if (lastArrival) {
|
||||||
// disallow cases where this gets triggered multiple times
|
// disallow cases where this gets triggered multiple times
|
||||||
|
|||||||
Reference in New Issue
Block a user