Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
cyri113 committed May 21, 2023
1 parent 314ffa4 commit 42a60c4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions src/routes/bull-board.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { ExpressAdapter } from "@bull-board/express";
import { createBullBoard } from "@bull-board/api"
import { BullMQAdapter } from '@bull-board/api/bullMQAdapter';
import { emailQueue, imageProcessingQueue } from "../queues"
import { createBullBoard } from "@bull-board/api";
import { BullMQAdapter } from "@bull-board/api/bullMQAdapter";
import { emailQueue, imageProcessingQueue } from "../queues";

const serverAdapter = new ExpressAdapter();
serverAdapter.setBasePath('/admin/queues');
serverAdapter.setBasePath("/admin/queues");

createBullBoard({
queues: [new BullMQAdapter(emailQueue), new BullMQAdapter(imageProcessingQueue)],
queues: [
new BullMQAdapter(emailQueue),
new BullMQAdapter(imageProcessingQueue),
],
serverAdapter,
});

export default serverAdapter
export default serverAdapter;
2 changes: 1 addition & 1 deletion src/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ const router = express.Router();

router.use("/jobs", jobsRoute);
router.use("/posts", postsRoute);
router.use("/admin/queues", serverAdapter.getRouter())
router.use("/admin/queues", serverAdapter.getRouter());

export default router;

0 comments on commit 42a60c4

Please sign in to comment.