Skip to content

Commit

Permalink
Update ClientServerService.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed Sep 21, 2024
1 parent 72f8f5f commit c1b697f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/backend/src/server/web/ClientServerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { fileURLToPath } from 'node:url';
import { Inject, Injectable } from '@nestjs/common';
import { createBullBoard } from '@bull-board/api';
import { BullMQAdapter } from '@bull-board/api/bullMQAdapter.js';
import { FastifyAdapter } from '@bull-board/fastify';
import { FastifyAdapter as BullBoardFastifyAdapter } from '@bull-board/fastify';
import ms from 'ms';
import sharp from 'sharp';
import pug from 'pug';
Expand Down Expand Up @@ -240,7 +240,7 @@ export class ClientServerService {
}
});

const serverAdapter = new FastifyAdapter();
const bullBoardServerAdapter = new BullBoardFastifyAdapter();

createBullBoard({
queues: [
Expand All @@ -253,11 +253,11 @@ export class ClientServerService {
this.userWebhookDeliverQueue,
this.systemWebhookDeliverQueue,
].map(q => new BullMQAdapter(q)),
serverAdapter,
serverAdapter: bullBoardServerAdapter,
});

serverAdapter.setBasePath(bullBoardPath);
(fastify.register as any)(serverAdapter.registerPlugin(), { prefix: bullBoardPath });
bullBoardServerAdapter.setBasePath(bullBoardPath);
//(fastify.register as any)(bullBoardServerAdapter.registerPlugin(), { prefix: bullBoardPath });
//#endregion

fastify.register(fastifyView, {
Expand Down

0 comments on commit c1b697f

Please sign in to comment.