Skip to content

Commit

Permalink
fix issue that 'options.autoDelete = false' doest take affect. (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanxlliu authored and mateodelnorte committed Feb 25, 2018
1 parent d2ba880 commit b8bd52e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bus/rabbitmq/queue.js
Expand Up @@ -7,7 +7,7 @@ function Queue (options) {
var queueOptions = options.queueOptions || {};

extend(queueOptions, {
autoDelete: options.autoDelete || ! (options.ack || options.acknowledge),
autoDelete: options.autoDelete === undefined ? ! (options.ack || options.acknowledge) : options.autoDelete,
contentType: options.contentType || 'application/json',
durable: Boolean(options.ack || options.acknowledge),
exclusive: options.exclusive || false,
Expand Down

0 comments on commit b8bd52e

Please sign in to comment.