bull-arena
Advanced tools
Comparing version 4.0.1 to 4.1.0
@@ -69,3 +69,3 @@ { | ||
"repository": "https://github.com/bee-queue/arena.git", | ||
"version": "4.0.1" | ||
"version": "4.1.0" | ||
} |
@@ -12,6 +12,8 @@ async function handler(req, res) { | ||
try { | ||
if (job.opts.repeat.key) { | ||
await queue.removeRepeatableByKey(job.opts.repeat.key); | ||
if (job.opts.repeat.key || job.repeatJobKey) { | ||
await queue.removeRepeatableByKey( | ||
job.opts.repeat.key || job.repeatJobKey | ||
); | ||
} else { | ||
await queue.removeRepeatable(job.name, job.opts.repeat); | ||
await queue.removeRepeatable(job.name, job.opts.repeat, job.opts.jobId); | ||
} | ||
@@ -18,0 +20,0 @@ return res.sendStatus(200); |
@@ -141,3 +141,3 @@ const _ = require('lodash'); | ||
jobs[i].showPromoteButton = !queue.IS_BEE && jobState === 'delayed'; | ||
jobs[i].showDeleteRepeatableButton = queue.IS_BULL && jobs[i].opts.repeat; | ||
jobs[i].showDeleteRepeatableButton = !queue.IS_BEE && jobs[i].opts.repeat; | ||
jobs[i].parent = JobHelpers.getKeyProperties(jobs[i].parentKey); | ||
@@ -144,0 +144,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2139564
5955