Skip to content

Commit

Permalink
fix(core): Fix handling of JobRecord ids when using UUID strategy
Browse files Browse the repository at this point in the history
Fixes #478
  • Loading branch information
michaelbromley committed Sep 29, 2020
1 parent 0d61f47 commit 30e6e70
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class SqlJobQueueStrategy implements JobQueueStrategy {

private toRecord(job: Job<any>): JobRecord {
return new JobRecord({
id: job.id,
id: job.id || undefined,
queueName: job.queueName,
data: job.data,
state: job.state,
Expand Down

0 comments on commit 30e6e70

Please sign in to comment.