Track deletion now recognizes associated stations

ref #67
This commit is contained in:
2021-01-07 18:53:09 +01:00
parent 9b9ee70288
commit 9776a35f9f
3 changed files with 22 additions and 4 deletions

View File

@@ -101,7 +101,7 @@ export class ScanStationController {
scanController.remove(scan.id, force);
}
const responseStation = await this.stationRepository.findOne({ id: station.id }, { relations: ["track", "scans"] });
const responseStation = await this.stationRepository.findOne({ id: station.id }, { relations: ["track"] });
await this.stationRepository.delete(station);
return responseStation.toResponse();
}