Delete notifcations when a user is deleted
This commit is contained in:
1 parent
460409499f
commit
7d3bc7ee8a
1 file changed
+1
@@ -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);
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user