From 7d3bc7ee8a205af95a0bab8e847290ef39c309fc Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Wed, 31 Jul 2024 12:55:19 -0700 Subject: [PATCH] Delete notifcations when a user is deleted --- Server/controllers/authController.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Server/controllers/authController.js b/Server/controllers/authController.js index 6d3e757a5..6f34f71ce 100644 --- a/Server/controllers/authController.js +++ b/Server/controllers/authController.js @@ -480,6 +480,7 @@ const deleteUserController = async (req, res, next) => { await req.jobQueue.deleteJob(monitor); await req.db.deleteChecks(monitor._id); await req.db.deleteAlertByMonitorId(monitor._id); + await req.db.deleteNotificationsByMonitorId(monitor._id); }) );