Skip to content

Commit 3df0189

Browse files
jericopulverajpedroschmitz
authored andcommitted
chore: Upgrade bull-board to 1.2.0
1 parent a68fa6a commit 3df0189

3 files changed

Lines changed: 260 additions & 130 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
},
7272
"dependencies": {
7373
"bull": "^3.12.0",
74-
"bull-board": "0.7.0",
74+
"bull-board": "1.2.0",
7575
"date-fns": "^2.7.0",
7676
"human-interval": "^0.1.6"
7777
},

src/Queue.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,13 @@ class Queue {
101101
}
102102

103103
ui(port = 9999) {
104-
BullBoard.setQueues(Object.values(this.queues).map((queue) => queue.bull))
104+
BullBoard.setQueues(
105+
Object.values(this.queues).map(
106+
(queue) => new BullBoard.BullAdapter(queue.bull)
107+
)
108+
)
105109

106-
const { UI } = BullBoard
107-
108-
const server = UI.listen(port, () => {
110+
const server = BullBoard.router.listen(port, () => {
109111
this.Logger.info(`bull board on http://localhost:${port}`)
110112
})
111113

0 commit comments

Comments
 (0)