Update ClientServerService.ts
This commit is contained in:
parent
72f8f5faf9
commit
c1b697f8a5
|
@ -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';
|
||||
|
@ -240,7 +240,7 @@ export class ClientServerService {
|
|||
}
|
||||
});
|
||||
|
||||
const serverAdapter = new FastifyAdapter();
|
||||
const bullBoardServerAdapter = new BullBoardFastifyAdapter();
|
||||
|
||||
createBullBoard({
|
||||
queues: [
|
||||
|
@ -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, {
|
||||
|
|
Loading…
Reference in New Issue