Merge pull request #662 from bluewave-labs/fix/monitor-config

Updated config monitor controller, resolves #656
This commit is contained in:
Alexander Holliday authored and GitHub committed 2024-08-16 16:17:25 -07:00
commit 73bb64772a
1 file changed
+2 -1
+2 -1
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;