Skip to content

docs: update configService code example - #432

Merged
kamilmysliwiec merged 1 commit into
nestjs:masterfrom
devniel:fix-readme-config-method
Nov 2, 2020
Merged

docs: update configService code example#432
kamilmysliwiec merged 1 commit into
nestjs:masterfrom
devniel:fix-readme-config-method

Conversation

@devniel

@devniel devniel commented Oct 9, 2020

Copy link
Copy Markdown
Contributor

PR Type

Small docs update.

What is the current behavior?

In the Async Options, an example with ConfigModule is being used where configServices uses getString that now should be get.

JwtModule.registerAsync({
  imports: [ConfigModule],
  useFactory: async (configService: ConfigService) => ({
    secret: configService.getString('SECRET'),
  }),
  inject: [ConfigService],
}),

@kamilmysliwiec
kamilmysliwiec merged commit 917ce20 into nestjs:master Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants