mirror of
https://github.com/docmost/docmost.git
synced 2026-08-20 12:21:35 +10:00
fix(queue): expose queue producers through a global module
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { Global, Module } from '@nestjs/common';
|
||||
import { BullModule } from '@nestjs/bullmq';
|
||||
import { createQueueRegistrations } from './queue.registrations';
|
||||
|
||||
// Global so @InjectQueue tokens resolve anywhere, in the app and in worker contexts.
|
||||
@Global()
|
||||
@Module({
|
||||
imports: [...createQueueRegistrations()],
|
||||
exports: [BullModule],
|
||||
})
|
||||
export class QueueProducersModule {}
|
||||
Reference in New Issue
Block a user