Skip to content

Commit

Permalink
fix(jobs): validate jobs length in bulk action (#676)
Browse files Browse the repository at this point in the history
  • Loading branch information
roggervalf committed May 7, 2024
1 parent b6c868a commit 2bce363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/views/api/bulkAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function bulkAction(action) {
const {jobs, queueState} = req.body;

try {
if (!_.isEmpty(jobs) && job.length > 0) {
if (!_.isEmpty(jobs) && jobs.length > 0) {
const jobsPromises = jobs.map((id) =>
queue.getJob(decodeURIComponent(id))
);
Expand Down

0 comments on commit 2bce363

Please sign in to comment.