From 0b1d14d9081d431f9be68b226191a6845b6178cd Mon Sep 17 00:00:00 2001 From: Auree Aubert Date: Sat, 3 Apr 2021 07:39:49 +0200 Subject: [PATCH] Update config --- src/server/queue/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/server/queue/index.js b/src/server/queue/index.js index d3ebf487..ede30e98 100644 --- a/src/server/queue/index.js +++ b/src/server/queue/index.js @@ -21,7 +21,11 @@ class Queues { } list() { - return this._config.queues; + if (this._config.queues) { + return this._config.queues; + } + + return this._config.getQueues(); } setConfig(config) { @@ -29,7 +33,7 @@ class Queues { } async get(queueName, queueHost) { - const queueConfig = _.find(this._config.queues, { + const queueConfig = _.find(this.list(), { name: queueName, hostId: queueHost });