Skip to content

Commit

Permalink
🐛 fix: correção na conexão com o redis
Browse files Browse the repository at this point in the history
  • Loading branch information
victorLessa committed Jun 22, 2023
1 parent a825895 commit 9cc3047
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/Queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Queue {

const { connection, ...connections } = Config.get('bull')

this.config = { redis: connections[connection] }
this.config = connections[connection]

this.connections = connections
}
Expand Down
24 changes: 14 additions & 10 deletions test/unit/queue.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,22 @@ test.group('Bull', (group) => {
config.set('bull', {
connection: 'bull',
local: {
host: '127.0.0.1',
port: 6379,
db: 0,
password: 'redis',
keyPrefix: '',
redis: {
host: '127.0.0.1',
port: 6379,
db: 0,
password: 'redis',
keyPrefix: '',
},
},
bull: {
host: '127.0.0.1',
port: 6379,
db: 0,
password: 'redis',
keyPrefix: 'q',
redis: {
host: '127.0.0.1',
port: 6379,
db: 0,
password: 'redis',
keyPrefix: 'q',
},
},
})

Expand Down

0 comments on commit 9cc3047

Please sign in to comment.