Return updated monitor state in pauseMonitor

This commit is contained in:
Vishnu Sreekumaran Nair committed 2025-05-12 13:50:58 -04:00
1 parent 22953ac30a
commit 3955524835
1 file changed
+3 -1
+3 -1
View File
@@ -589,7 +589,9 @@ class MonitorController {
status: "$$REMOVE",
},
},
]);
],
{ new: true }
);
monitor.isActive === true
? await this.jobQueue.deleteJob(monitor)
: await this.jobQueue.addJob(monitor._id, monitor);