mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-01-23 02:00:20 -06:00
Updated config monitor controller
This commit is contained in:
@@ -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