Updated config monitor controller

This commit is contained in:
Alex Holliday
2024-08-16 15:26:26 -07:00
parent eeb7812ca5
commit 3f0695d743

View File

@@ -303,7 +303,8 @@ const editMonitor = async (req, res, next) => {
}
try {
const monitorBeforeEdit = await req.db.getMonitorById(req, res);
const { monitorId } = req.params;
const monitorBeforeEdit = await req.db.getMonitorById(monitorId);
// Get notifications from the request body
const notifications = req.body.notifications;