File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ Like other [factory providers](https://docs.nestjs.com/fundamentals/custom-provi
205
205
const schema = CatsSchema ;
206
206
schema .pre (' save' , () =>
207
207
console .log (
208
- ` ${configService .getString (' APP_NAME' )}: Hello from pre save ` ,
208
+ ` ${configService .get < string > (' APP_NAME' )}: Hello from pre save ` ,
209
209
),
210
210
);
211
211
return schema ;
@@ -303,7 +303,7 @@ Like other [factory providers](https://docs.nestjs.com/fundamentals/custom-provi
303
303
MongooseModule .forRootAsync ({
304
304
imports: [ConfigModule ],
305
305
useFactory : async (configService : ConfigService ) => ({
306
- uri: configService .getString (' MONGODB_URI' ),
306
+ uri: configService .get < string > (' MONGODB_URI' ),
307
307
}),
308
308
inject: [ConfigService ],
309
309
});
You can’t perform that action at this time.
0 commit comments