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: [
|
imports: [
|
||||||
ConfigModule.forRoot({ isGlobal: true }),
|
ConfigModule.forRoot({ isGlobal: true }),
|
||||||
TypeOrmModule.forRootAsync({
|
TypeOrmModule.forRootAsync({
|
||||||
|
imports: [ConfigModule],
|
||||||
useFactory: (configService: ConfigService) => ({
|
useFactory: (configService: ConfigService) => ({
|
||||||
type: 'sqlite',
|
type: 'sqlite',
|
||||||
database: configService.get<string>(
|
database: configService.get<string>(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue