Skip to content

Commit 2bce363

Browse files
authored
fix(jobs): validate jobs length in bulk action (#676)
1 parent b6c868a commit 2bce363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/views/api/bulkAction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function bulkAction(action) {
1919
const {jobs, queueState} = req.body;
2020

2121
try {
22-
if (!_.isEmpty(jobs) && job.length > 0) {
22+
if (!_.isEmpty(jobs) && jobs.length > 0) {
2323
const jobsPromises = jobs.map((id) =>
2424
queue.getJob(decodeURIComponent(id))
2525
);

0 commit comments

Comments
 (0)