diff --git a/package.json b/package.json index 9bf4f86ea6..63887dfb74 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,7 @@ "@wordpress/wordcount": "2.14.1", "body-parser": "1.19.0", "bull": "3.20.1", - "bull-board": "0.9.0", + "bull-board": "1.3.1", "connect-redis": "5.1.0", "cors": "2.8.5", "date-fns": "2.17.0", diff --git a/src/backend/feed/queue.js b/src/backend/feed/queue.js index 2926a339f7..eb07974ad9 100644 --- a/src/backend/feed/queue.js +++ b/src/backend/feed/queue.js @@ -1,4 +1,4 @@ -const { setQueues } = require('bull-board'); +const { setQueues, BullAdapter } = require('bull-board'); require('../lib/config'); const { logger } = require('../utils/logger'); @@ -8,7 +8,7 @@ const { createQueue } = require('../lib/queue'); const queue = createQueue('feed-queue'); // For visualizing queues using bull board -setQueues(queue); +setQueues([new BullAdapter(queue)]); /** * Provide a helper for adding a feed with our desired default options. diff --git a/src/backend/web/routes/admin.js b/src/backend/web/routes/admin.js index 0753fd79f8..7ea126c1d8 100644 --- a/src/backend/web/routes/admin.js +++ b/src/backend/web/routes/admin.js @@ -1,6 +1,6 @@ require('../../lib/config'); const express = require('express'); -const { UI } = require('bull-board'); +const { router: bullBoardRouter } = require('bull-board'); const { createProxyMiddleware } = require('http-proxy-middleware'); const fs = require('fs'); @@ -10,7 +10,7 @@ const { logger } = require('../../utils/logger'); const router = express.Router(); // Only authenticated admins can use these routes -router.use('/queues', protectAdmin(true), UI); +router.use('/queues', protectAdmin(true), bullBoardRouter); // Only authenticated admin users can see this route router.get('/log', protectAdmin(true), (req, res) => {