mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
add repository methods to clear all data
This commit is contained in:
@@ -147,4 +147,28 @@ export class UnoptimizedInMemoryRepository implements GetterSetterRepository {
|
||||
this.etas.push(eta);
|
||||
}
|
||||
}
|
||||
|
||||
public async clearSystemData() {
|
||||
this.systems = [];
|
||||
}
|
||||
|
||||
public async clearShuttleData(): Promise<void> {
|
||||
this.shuttles = [];
|
||||
}
|
||||
|
||||
public async clearEtaData(): Promise<void> {
|
||||
this.etas = [];
|
||||
}
|
||||
|
||||
public async clearOrderedStopData(): Promise<void> {
|
||||
this.orderedStops = [];
|
||||
}
|
||||
|
||||
public async clearRouteData(): Promise<void> {
|
||||
this.routes = [];
|
||||
}
|
||||
|
||||
public async clearStopData(): Promise<void> {
|
||||
this.stops = [];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user