import { BullModule } from '@nestjs/bull' ; import { Module } from '@nestjs/common' ; import { ConfigService } from 'nestjs-config' ; import { AudioController } from './audio.controller' ; import { AudioProcessor } from './audio.processor' ; @ Module ( { imports : [ BullModule . registerQueueAsync ( { name : 'audio' , useFactory : ( config ) => ( { redis : config . get ( 'redis' ) } ) , inject : [ ConfigService ] } ) , ] , controllers : [ AudioController ] , providers : [ AudioProcessor ] , } ) export class AudioModule { }