Commit aa00c561 authored by nanahira's avatar nanahira

fix

parent c8a3390e
Pipeline #14531 failed with stages
in 33 seconds
...@@ -12,7 +12,6 @@ import { TypeOrmModule } from '@nestjs/typeorm'; ...@@ -12,7 +12,6 @@ import { TypeOrmModule } from '@nestjs/typeorm';
isGlobal: true, isGlobal: true,
}), }),
TypeOrmModule.forRootAsync({ TypeOrmModule.forRootAsync({
imports: [ConfigModule],
inject: [ConfigService], inject: [ConfigService],
useFactory: async (config: ConfigService) => ({ useFactory: async (config: ConfigService) => ({
type: 'postgres', type: 'postgres',
......
...@@ -8,6 +8,7 @@ import { loadConfig } from './utility/config'; ...@@ -8,6 +8,7 @@ import { loadConfig } from './utility/config';
imports: [ imports: [
ConfigModule.forRoot({ ConfigModule.forRoot({
load: [loadConfig], load: [loadConfig],
isGlobal: true,
}), }),
], ],
controllers: [AppController], controllers: [AppController],
......
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