mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-16 23:40:32 +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,
|
||||
currentArrival,
|
||||
}: 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
|
||||
if (lastArrival) {
|
||||
// disallow cases where this gets triggered multiple times
|
||||
|
||||
Reference in New Issue
Block a user