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') }