mirror of
https://github.com/docmost/docmost.git
synced 2026-08-20 00:41:37 +10:00
12 lines
376 B
TypeScript
12 lines
376 B
TypeScript
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 {}
|