fix: eventBus at end of params
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 35s

This commit is contained in:
WangDL 2026-05-23 19:48:18 +08:00
parent 7c1e439c3b
commit 903474b7c2

View File

@ -17,10 +17,10 @@ export class QueueService {
constructor(
private readonly prisma: PrismaService,
@Optional() private readonly eventBus?: any,
@InjectQueue(QUEUE_AI_ANALYSIS) private readonly aiQueue: Queue,
@InjectQueue(QUEUE_DOCUMENT_IMPORT) private readonly importQueue: Queue,
@InjectQueue(QUEUE_NOTIFICATION) private readonly notifyQueue: Queue,
@Optional() private readonly eventBus?: any,
) {}
async add(queueName: string, data: any, opts?: { jobId?: string; attempts?: number; backoff?: number }) {