Skip to content

Commit

Permalink
Update config
Browse files Browse the repository at this point in the history
  • Loading branch information
aureeaubert committed Apr 3, 2021
1 parent 2410278 commit 0b1d14d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/server/queue/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,19 @@ class Queues {
}

list() {
return this._config.queues;
if (this._config.queues) {
return this._config.queues;
}

return this._config.getQueues();
}

setConfig(config) {
this._config = config;
}

async get(queueName, queueHost) {
const queueConfig = _.find(this._config.queues, {
const queueConfig = _.find(this.list(), {
name: queueName,
hostId: queueHost
});
Expand Down

0 comments on commit 0b1d14d

Please sign in to comment.