Browse Source

👽 update app module

main
Henri Boulnois 5 years ago
parent
commit
5c00fc5637
  1. 9
      src/app.module.ts

9
src/app.module.ts

@ -4,7 +4,6 @@ import { AppService } from './app.service';
import { ConfigModule } from './config/config.module';
import { ConfigService } from './config/config.service';
import { TypeOrmModule, TypeOrmModuleOptions } from '@nestjs/typeorm';
import { TodosModule } from './todos/todos.module';
@Module({
imports: [
@ -19,12 +18,16 @@ import { TodosModule } from './todos/todos.module';
entities: [__dirname + '/**/*.entity{.ts,.js}'],
synchronize: true,
logging: configService.isLoggingDb ? 'all' : false,
extra: {
ssl: {
rejectUnauthorized: false
},
},
}),
inject: [ConfigService],
}),
TodosModule,
],
controllers: [AppController],
providers: [AppService],
})
export class AppModule {}
export class AppModule {}
Loading…
Cancel
Save