From a61183dbb8ec70d91c0eb1400481bc1c9ad87041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geir=20G=C3=A5sodden?= Date: Wed, 27 Mar 2019 11:41:14 +0100 Subject: [PATCH] Fixes logical error in options check (patch) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index c1163e3..f7d95e5 100644 --- a/index.js +++ b/index.js @@ -7,7 +7,7 @@ module.exports = options => { if (!options.connectionString) { throw Error('Missing required input: options.connectionString') } - if (!options.topicName || !options.queueName) { + if (!options.topicName && !options.queueName) { throw Error('Missing required input: missing options.topicName or options.queueName') }