Skip to content

Commit a1cc0aa

Browse files
committed
fix: enqueue
1 parent 075b589 commit a1cc0aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/backends/postgres/src/postgres-backend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default class PostgresBackend implements Backend {
4141
...job,
4242
args: this.knex.raw("?", [JSON.stringify(job.args)]),
4343
constructor_args: this.knex.raw("?", [JSON.stringify(job.constructor_args)]),
44-
uniqueness_config: this.knex.raw("?", [JSON.stringify(job.uniqueness_config)]),
44+
uniqueness_config: job.uniqueness_config ? this.knex.raw("?", [JSON.stringify(job.uniqueness_config)]) : null,
4545
timeout: job.timeout,
4646
state: job.state,
4747
};

0 commit comments

Comments
 (0)