Return updated monitor state in pauseMonitor
This commit is contained in:
1 parent
22953ac30a
commit
3955524835
1 file changed
+3
-1
@@ -589,7 +589,9 @@ class MonitorController {
|
|||||||
status: "$$REMOVE",
|
status: "$$REMOVE",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
]);
|
],
|
||||||
|
{ new: true }
|
||||||
|
);
|
||||||
monitor.isActive === true
|
monitor.isActive === true
|
||||||
? await this.jobQueue.deleteJob(monitor)
|
? await this.jobQueue.deleteJob(monitor)
|
||||||
: await this.jobQueue.addJob(monitor._id, monitor);
|
: await this.jobQueue.addJob(monitor._id, monitor);
|
||||||
|
|||||||
Reference in new issue
Block a user