Adding import of config module to TypeORM async config
This commit is contained in:
parent
962644fb3a
commit
65d12a266d
1 changed files with 1 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ import { LoggerModule } from './logger/module'
|
|||
imports: [
|
||||
ConfigModule.forRoot({ isGlobal: true }),
|
||||
TypeOrmModule.forRootAsync({
|
||||
imports: [ConfigModule],
|
||||
useFactory: (configService: ConfigService) => ({
|
||||
type: 'sqlite',
|
||||
database: configService.get<string>(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue