initial Pulse implementation

This commit is contained in:
Alex Holliday committed 2025-06-06 14:05:59 +08:00
1 parent 1f9fbf7115
commit 9a22d4a971
12 files changed
+455 -72

No files matched your search

+2 -2
View File
@@ -595,8 +595,8 @@ class MonitorController {
{ new: true }
);
monitor.isActive === true
? await this.jobQueue.addJob(monitor._id, monitor)
: await this.jobQueue.deleteJob(monitor);
? await this.jobQueue.resumeJob(monitor._id, monitor)
: await this.jobQueue.pauseJob(monitor);
return res.success({
msg: monitor.isActive