add update job method
This commit is contained in:
1 parent
9a22d4a971
commit
7475dcfb21
3 files changed
+24
-6
No files matched your search
@@ -188,6 +188,11 @@ class JobQueue {
|
||||
}
|
||||
}
|
||||
|
||||
async updateJob(monitor) {
|
||||
await this.deleteJob(monitor);
|
||||
await this.addJob(monitor._id, monitor);
|
||||
}
|
||||
|
||||
async getJobs() {
|
||||
try {
|
||||
let stats = {};
|
||||
|
||||
Reference in new issue
Block a user