Updated config monitor controller
This commit is contained in:
1 parent
eeb7812ca5
commit
3f0695d743
1 file changed
+2
-1
@@ -303,7 +303,8 @@ const editMonitor = async (req, res, next) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
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
|
// Get notifications from the request body
|
||||||
const notifications = req.body.notifications;
|
const notifications = req.body.notifications;
|
||||||
|
|||||||
Reference in new issue
Block a user