From 76f550843b622245895f170c7c6467ea4b33213d Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Wed, 11 Mar 2026 13:45:17 -0700 Subject: [PATCH] remove dead check --- server/src/controllers/notificationController.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/src/controllers/notificationController.ts b/server/src/controllers/notificationController.ts index da396ba74..9c39daee7 100644 --- a/server/src/controllers/notificationController.ts +++ b/server/src/controllers/notificationController.ts @@ -114,9 +114,7 @@ class NotificationController { const teamId = requireTeamId(req.user?.teamId); const notificationId = validatedParams.id; - if (!notificationId) { - throw new AppError({ message: "Notification ID is required", status: 400 }); - } + const editedNotification = await this.notificationsService.updateById(notificationId, teamId, validatedBody); return res.status(200).json({ success: true,