Skip to content

Commit 3833c13

Browse files
committed
docs(http-module): fix configService method
1 parent fbfc17e commit 3833c13

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)