Skip to content

Commit 5e16f76

Browse files
committed
fix(events-producer): stringify values in args
1 parent 14c9fed commit 5e16f76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/classes/queue-events-producer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class QueueEventsProducer extends QueueBase {
4040
const args: any[] = ['MAXLEN', '~', maxEvents, '*', 'event', eventName];
4141

4242
for (const [key, value] of Object.entries(restArgs)) {
43-
args.push(key, value);
43+
args.push(key, JSON.stringify(value));
4444
}
4545

4646
await client.xadd(key, ...args);

0 commit comments

Comments
 (0)