Skip to content

Commit

Permalink
fix: add imports in forRootAsync constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
bassochette committed Mar 6, 2022
1 parent b3dac31 commit b0c41d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/redis/redis.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export interface RedisConnectionOptions {
}

export interface RedisModuleAsyncOptions {
imports: any[];
inject: any[];
useFactory: (
...args: any[]
Expand Down
1 change: 1 addition & 0 deletions src/redis/redis.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export class RedisModule {

public static forRootAsync(options: RedisModuleAsyncOptions): DynamicModule {
return {
imports: options.imports,
module: RedisModule,
providers: [
RedisProvider,
Expand Down

0 comments on commit b0c41d8

Please sign in to comment.