Skip to content

Commit 4cb3c82

Browse files
committed
Merge branch 'main' of github.com:squareboat/nest-queue
2 parents 2086f11 + 8f042ee commit 4cb3c82

File tree

2 files changed

+8
-722
lines changed

2 files changed

+8
-722
lines changed

lib/queue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Message } from "@squareboat/nest-queue-strategy";
66
export class Queue {
77
static async dispatch(message: Message): Promise<void> {
88
const job = QueueMetadata.getJob(message.job);
9-
const payload = PayloadBuilder.build(message, job.options);
9+
const payload = PayloadBuilder.build(message, job?.options ?? {});
1010
const connection = QueueService.getConnection(payload["connection"]);
1111
return connection.push(JSON.stringify(payload), payload);
1212
}

0 commit comments

Comments
 (0)