Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: issue 1588 - Update bull board and highlight.js dep #1768

Merged
merged 1 commit into from
Feb 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/backend/feed/queue.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { setQueues } = require('bull-board');
const { setQueues, BullAdapter } = require('bull-board');

require('../lib/config');
const { logger } = require('../utils/logger');
Expand All @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/backend/web/routes/admin.js
Original file line number Diff line number Diff line change
@@ -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');

Expand All @@ -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) => {
Expand Down