cleanup app module in angular
This commit is contained in:
parent
ec44849b31
commit
a8ef23845c
@ -9,8 +9,6 @@ import { User } from './entity/user';
|
|||||||
import { UserGroup } from './entity/user-group';
|
import { UserGroup } from './entity/user-group';
|
||||||
import { UserRole } from './entity/user-role';
|
import { UserRole } from './entity/user-role';
|
||||||
import { LoggerModule } from './logger/logger.module';
|
import { LoggerModule } from './logger/logger.module';
|
||||||
import { Product } from "./entity/product.entity";
|
|
||||||
import { ProductsModule } from "./product/products.module";
|
|
||||||
|
|
||||||
const moduleTypeOrm = TypeOrmModule.forRootAsync({
|
const moduleTypeOrm = TypeOrmModule.forRootAsync({
|
||||||
imports: [ConfigModule],
|
imports: [ConfigModule],
|
||||||
@ -23,7 +21,7 @@ const moduleTypeOrm = TypeOrmModule.forRootAsync({
|
|||||||
username: configService.get<string>('DATABASE_USER'),
|
username: configService.get<string>('DATABASE_USER'),
|
||||||
password: configService.get<string>('DATABASE_PASS'),
|
password: configService.get<string>('DATABASE_PASS'),
|
||||||
database: configService.get<string>('DATABASE_NAME'),
|
database: configService.get<string>('DATABASE_NAME'),
|
||||||
entities: [User, UserGroup, UserRole, Product],
|
entities: [User, UserGroup, UserRole],
|
||||||
logging: true,
|
logging: true,
|
||||||
// synchronize: true,
|
// synchronize: true,
|
||||||
};
|
};
|
||||||
@ -37,7 +35,6 @@ const moduleTypeOrm = TypeOrmModule.forRootAsync({
|
|||||||
UserModule,
|
UserModule,
|
||||||
AuthModule,
|
AuthModule,
|
||||||
LoggerModule,
|
LoggerModule,
|
||||||
ProductsModule
|
|
||||||
],
|
],
|
||||||
controllers: [AppController],
|
controllers: [AppController],
|
||||||
providers: [AppService],
|
providers: [AppService],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user