Implement clearing of last stop data

This commit is contained in:
2025-11-14 10:19:15 -08:00
parent 4523badea9
commit f76126c951
2 changed files with 12 additions and 0 deletions

View File

@@ -284,6 +284,7 @@ export class UnoptimizedInMemoryShuttleRepository
public async clearShuttleData(): Promise<void> {
this.shuttles = [];
await this.clearShuttleLastStopData();
}
public async clearOrderedStopData(): Promise<void> {
@@ -298,4 +299,7 @@ export class UnoptimizedInMemoryShuttleRepository
this.stops = [];
}
private async clearShuttleLastStopData(): Promise<void> {
this.shuttleLastStopArrivals.clear();
}
}