Commit 7e2f9c3b authored by nanahira's avatar nanahira

update

parent 09d1b748
Pipeline #6365 passed with stages
in 1 minute and 1 second
......@@ -5,14 +5,13 @@ import { TypeOrmModule } from '@nestjs/typeorm';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { User } from './entities/User.entity';
const configModule = ConfigModule.forRoot();
@Module({
imports: [
configModule,
ConfigModule.forRoot({
isGlobal: true,
}),
TypeOrmModule.forRootAsync({
name: 'app',
imports: [configModule],
inject: [ConfigService],
useFactory: async (config: ConfigService) => {
return {
......
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