JobQueue was not deleting jobs correctly due to incorrect lookup in monitor object
This commit is contained in:
1 parent
2a79264a9a
commit
9e51cffb67
2 files changed
+3
-2
No files matched your search
@@ -231,7 +231,7 @@ class JobQueue {
|
||||
*/
|
||||
async deleteJob(monitor) {
|
||||
try {
|
||||
const deleted = await this.queue.removeRepeatable(monitor.id, {
|
||||
const deleted = await this.queue.removeRepeatable(monitor._id, {
|
||||
every: monitor.interval,
|
||||
});
|
||||
if (deleted) {
|
||||
|
||||
Reference in new issue
Block a user