Skip to content

Commit 1ac048f

Browse files
Merge pull request #2134 from ledniy/fix-http-module-config
docs(http-module): fix configService method
2 parents a755ba5 + 3833c13 commit 1ac048f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/techniques/http-module.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ Like other factory providers, our factory function can be [async](https://docs.n
9494
HttpModule.registerAsync({
9595
imports: [ConfigModule],
9696
useFactory: async (configService: ConfigService) => ({
97-
timeout: configService.getString('HTTP_TIMEOUT'),
98-
maxRedirects: configService.getString('HTTP_MAX_REDIRECTS'),
97+
timeout: configService.get('HTTP_TIMEOUT'),
98+
maxRedirects: configService.get('HTTP_MAX_REDIRECTS'),
9999
}),
100100
inject: [ConfigService],
101101
});

0 commit comments

Comments
 (0)