Skip to content

Commit

Permalink
docs: update example code
Browse files Browse the repository at this point in the history
  • Loading branch information
kelp404 committed Mar 23, 2020
1 parent f5bbeaa commit 58385ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions example/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const BullAdminPanel = require('../');

const app = express();
const server = http.createServer(app);
const queue = new Bull('task-worker', config.bull);

app.get('/', (req, res) => res.redirect('/bull'));

Expand All @@ -20,7 +19,7 @@ app.use('/bull', new BullAdminPanel({
// }
callback(true);
},
queues: [queue],
queues: [new Bull('task-worker', config.bull)],
server: server
}));

Expand Down

0 comments on commit 58385ff

Please sign in to comment.