From c8f941a779d90e6661efca5aeeadc44fc612eb50 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Thu, 7 Jan 2021 20:22:58 +0100 Subject: [PATCH] Fixed wrong error getting thrown ref #67 --- src/controllers/ScanStationController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/ScanStationController.ts b/src/controllers/ScanStationController.ts index e85f31e..7ad2630 100644 --- a/src/controllers/ScanStationController.ts +++ b/src/controllers/ScanStationController.ts @@ -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));