Implemented cascading scan, track and card deletion

ref #78
This commit is contained in:
2021-01-09 15:43:52 +01:00
parent 9013b9492c
commit 3d07aac944
5 changed files with 20 additions and 6 deletions

View File

@@ -98,7 +98,7 @@ export class ScanStationController {
}
const scanController = new ScanController;
for (let scan of stationScans) {
scanController.remove(scan.id, force);
await scanController.remove(scan.id, force);
}
const responseStation = await this.stationRepository.findOne({ id: station.id }, { relations: ["track"] });