diff --git a/server/src/controllers/ChecksController.ts b/server/src/controllers/ChecksController.ts index c01d18490..dc26ff28a 100644 --- a/server/src/controllers/ChecksController.ts +++ b/server/src/controllers/ChecksController.ts @@ -68,6 +68,9 @@ class ChecksController implements IChecksController { } const checkId = req.params.id; + if (!checkId) { + throw new ApiError("No check ID", 400); + } const check = await this.checkService.getCheckById(checkId, teamId); return res.status(200).json({