File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed
Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,9 @@ import { DtoValidationPipe } from './_common/pipes/dto-validation.pipe';
4141 imports : [ ConfigModule ] ,
4242 inject : [ ConfigService ] ,
4343 useFactory : async ( config : ConfigService ) => ( {
44- config : {
45- url : config . get < string > ( 'ioredis.uri' ) ,
46- options : config . get < RedisOptions > ( 'ioredis.options' ) ,
47- } ,
44+ type : 'single' ,
45+ url : config . get < string > ( 'ioredis.uri' ) ,
46+ options : config . get < RedisOptions > ( 'ioredis.options' ) ,
4847 } ) ,
4948 } ) ,
5049 BullModule . forRootAsync ( {
Original file line number Diff line number Diff line change @@ -39,10 +39,9 @@ import { AuthModule } from '~/core/auth/auth.module';
3939 imports : [ ConfigModule ] ,
4040 inject : [ ConfigService ] ,
4141 useFactory : async ( config : ConfigService ) => ( {
42- config : {
43- ...config . get < RedisOptions > ( 'ioredis.options' ) ,
44- url : config . get < string > ( 'ioredis.uri' ) ,
45- } ,
42+ type : 'single' ,
43+ url : config . get < string > ( 'ioredis.uri' ) ,
44+ options : config . get < RedisOptions > ( 'ioredis.options' ) ,
4645 } ) ,
4746 } ) ,
4847 BullModule . forRootAsync ( {
@@ -68,4 +67,4 @@ import { AuthModule } from '~/core/auth/auth.module';
6867 KeyringsCreateQuestions ,
6968 ] ,
7069} )
71- export class CliModule { }
70+ export class CliModule { }
You can’t perform that action at this time.
0 commit comments