mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
Replicate the change in the in-memory version
This commit is contained in:
@@ -160,11 +160,6 @@ export class InMemorySelfUpdatingETARepository extends BaseInMemoryETARepository
|
||||
lastArrival,
|
||||
currentArrival,
|
||||
}: WillArriveAtStopPayload): Promise<void> {
|
||||
const etas = await this.getEtasForShuttleId(currentArrival.shuttleId);
|
||||
for (const eta of etas) {
|
||||
await this.removeEtaIfExists(eta.shuttleId, eta.stopId);
|
||||
}
|
||||
|
||||
if (lastArrival) {
|
||||
// disallow cases where this gets triggered multiple times
|
||||
if (lastArrival.stopId === currentArrival.stopId) return;
|
||||
|
||||
Reference in New Issue
Block a user