Skip to content

Commit

Permalink
Merge pull request #432 from devniel/fix-readme-config-method
Browse files Browse the repository at this point in the history
docs: update configService code example
  • Loading branch information
kamilmysliwiec authored Nov 2, 2020
2 parents d1e2588 + f779af2 commit 917ce20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Obviously, our factory behaves like every other one (might be `async` and is abl
JwtModule.registerAsync({
imports: [ConfigModule],
useFactory: async (configService: ConfigService) => ({
secret: configService.getString('SECRET'),
secret: configService.get<string>('SECRET'),
}),
inject: [ConfigService],
}),
Expand Down

0 comments on commit 917ce20

Please sign in to comment.