JobQueue was not deleting jobs correctly due to incorrect lookup in monitor object

This commit is contained in:
Alex Holliday committed 2024-07-31 13:24:38 -07:00
1 parent 2a79264a9a
commit 9e51cffb67
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -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) {