mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
Implement clearing of last stop data
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user