From 42a60c4b67e5fa55c25793be4ee178dc63735497 Mon Sep 17 00:00:00 2001 From: Cyrille Derche Date: Sun, 21 May 2023 14:54:03 +0200 Subject: [PATCH] prettier --- src/routes/bull-board.ts | 15 +++++++++------ src/routes/index.ts | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/routes/bull-board.ts b/src/routes/bull-board.ts index 50fc656..760d71f 100644 --- a/src/routes/bull-board.ts +++ b/src/routes/bull-board.ts @@ -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 \ No newline at end of file +export default serverAdapter; diff --git a/src/routes/index.ts b/src/routes/index.ts index ecf5d38..9bd0bd5 100644 --- a/src/routes/index.ts +++ b/src/routes/index.ts @@ -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;