Replicate the change in the in-memory version

This commit is contained in:
2025-11-18 19:07:44 -08:00
parent a2f76703ea
commit 0798773bcb

View File

@@ -160,11 +160,6 @@ export class InMemorySelfUpdatingETARepository extends BaseInMemoryETARepository
lastArrival, lastArrival,
currentArrival, currentArrival,
}: WillArriveAtStopPayload): Promise<void> { }: WillArriveAtStopPayload): Promise<void> {
const etas = await this.getEtasForShuttleId(currentArrival.shuttleId);
for (const eta of etas) {
await this.removeEtaIfExists(eta.shuttleId, eta.stopId);
}
if (lastArrival) { if (lastArrival) {
// disallow cases where this gets triggered multiple times // disallow cases where this gets triggered multiple times
if (lastArrival.stopId === currentArrival.stopId) return; if (lastArrival.stopId === currentArrival.stopId) return;