Merge pull request #662 from bluewave-labs/fix/monitor-config
Updated config monitor controller, resolves #656
This commit is contained in:
1 file changed
+2
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user