Skip to content

Commit 5fb7250

Browse files
committed
Now using default binding key '#'
1 parent e6c2305 commit 5fb7250

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/triggers/consume.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function processAction(msg, cfg) {
1717
const amqpURI = cfg.amqpURI;
1818
const amqpExchange = cfg.topic;
1919
const queueName = `eio_consumer_${process.env.ELASTICIO_TASK_ID}_${process.env.ELASTICIO_USER_ID}`;
20-
const keys = cfg.bindingKeys.split(',').map((s)=>s.trim());
20+
const keys = (cfg.bindingKeys || '#').split(',').map((s)=>s.trim());
2121
const consumer = (msg) => {
2222
console.log('consuming message %s in generator', JSON.stringify(msg.content.toString()));
2323
};

0 commit comments

Comments
 (0)