Commit a544e814 authored by nanahira's avatar nanahira

fix

parent 269ee81b
Pipeline #4739 passed with stages
in 1 minute and 4 seconds
...@@ -11,11 +11,11 @@ const configModule = ConfigModule.forRoot(); ...@@ -11,11 +11,11 @@ const configModule = ConfigModule.forRoot();
imports: [ imports: [
configModule, configModule,
TypeOrmModule.forRootAsync({ TypeOrmModule.forRootAsync({
name: 'app',
imports: [configModule], imports: [configModule],
inject: [ConfigService], inject: [ConfigService],
useFactory: async (config: ConfigService) => { useFactory: async (config: ConfigService) => {
return { return {
name: 'app',
type: 'postgres', type: 'postgres',
entities: [User], // entities here entities: [User], // entities here
synchronize: !config.get('DB_NO_INIT'), synchronize: !config.get('DB_NO_INIT'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment