Fixed wrong error getting thrown

ref #67
This commit is contained in:
Nicolai Ort 2021-01-07 20:22:58 +01:00
parent 5510cbb8e9
commit c8f941a779
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ export class ScanStationController {
}
if (oldStation.id != station.id) {
throw new ScanStationNotFoundError();
throw new ScanStationIdsNotMatchingError();
}
await this.stationRepository.save(await station.updateStation(oldStation));