add update job method

This commit is contained in:
Alex Holliday committed 2025-06-08 08:41:42 +08:00
1 parent 9a22d4a971
commit 7475dcfb21
3 files changed
+24 -6

No files matched your search

+5
View File
@@ -188,6 +188,11 @@ class JobQueue {
}
}
async updateJob(monitor) {
await this.deleteJob(monitor);
await this.addJob(monitor._id, monitor);
}
async getJobs() {
try {
let stats = {};