File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { ConfigModule, ConfigService } from '@nestjs/config';
33import { TypeOrmModule } from '@nestjs/typeorm' ;
44import { ScheduleModule } from '@nestjs/schedule' ;
55import { EventEmitterModule } from '@nestjs/event-emitter' ;
6+ import { BullModule } from '@nestjs/bull' ;
67import { APP_GUARD } from '@nestjs/core' ;
78import { JwtAuthGuard } from './common/guards/jwt-auth.guard' ;
89import { RolesGuard } from './common/guards/roles.guard' ;
@@ -18,6 +19,12 @@ import { GatewayModule } from './gateway/gateway.module';
1819 ConfigModule . forRoot ( { isGlobal : true } ) ,
1920 ScheduleModule . forRoot ( ) ,
2021 EventEmitterModule . forRoot ( ) ,
22+ BullModule . forRootAsync ( {
23+ inject : [ ConfigService ] ,
24+ useFactory : ( config : ConfigService ) => ( {
25+ redis : config . get ( 'REDIS_URL' ) ,
26+ } ) ,
27+ } ) ,
2128 TypeOrmModule . forRootAsync ( {
2229 inject : [ ConfigService ] ,
2330 useFactory : ( config : ConfigService ) => ( {
You can’t perform that action at this time.
0 commit comments