Open zer0c14 opened 2 years ago
https://github.com/baburikon/shorturl-nestjs-01/blob/61b67a115ab4c05e46a3594d80f1fe6936f8f2c6/src/app.module.ts#L20
TypeOrmModule.forRootAsync({ imports: [ConfigModule], useClass: TypeOrmConfigService, }); @Injectable() export class TypeOrmConfigService implements TypeOrmOptionsFactory { constructor(@Inject(ConfigService) private configService: ConfigService) {} createTypeOrmOptions(): TypeOrmModuleOptions { ... } }
https://github.com/baburikon/shorturl-nestjs-01/blob/61b67a115ab4c05e46a3594d80f1fe6936f8f2c6/src/app.module.ts#L20