From 46740aa4b96a6bb4a511dfdbac43989a33fd1b28 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Tue, 23 Dec 2025 00:36:03 +0000 Subject: [PATCH] ts --- server/src/controllers/ChecksController.ts | 3 +++ 1 file changed, 3 insertions(+) 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({