Skip to content

Commit

Permalink
docs(registerAsync): fix code example with missing ConfigModule import
Browse files Browse the repository at this point in the history
  • Loading branch information
Nargonath committed Oct 26, 2023
1 parent 1cbea76 commit 5a7e048
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ import { ConfigModule, ConfigService } from "@nestjs/config";
imports: [
ConfigModule.forRoot(),
NarangoModule.registerAsync({
imports: [ConfigModule.forRoot()],
useFactory: (config: ConfigService) => ({
database: {
url: config.get<string>("url"),
Expand Down

0 comments on commit 5a7e048

Please sign in to comment.