Skip to content

Commit

Permalink
fix: job.createBulk doesnt not obey custom jobID taskforcesh#189
Browse files Browse the repository at this point in the history
  • Loading branch information
pcashdown-tu committed Jun 21, 2020
1 parent 2da059d commit 10ca797
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/classes/job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,14 @@ export class Job<T = any, R = any> {
const client = await queue.client;

const jobInstances = jobs.map(
job => new Job<T, R>(queue, job.name, job.data, job.opts),
job =>
new Job<T, R>(
queue,
job.name,
job.data,
job.opts,
job.opts && job.opts.jobId,
),
);

const multi = client.multi();
Expand Down

0 comments on commit 10ca797

Please sign in to comment.