Controlador
This commit is contained in:
+2
-2
@@ -16,7 +16,7 @@ import { User } from "./users/entities/user.entity";
|
||||
isGlobal: true,
|
||||
}),
|
||||
TypeOrmModule.forRootAsync({
|
||||
imports: [ConfigModule],
|
||||
imports: [ConfigModule,AuthModule,UsersModule,],
|
||||
inject: [ConfigService],
|
||||
useFactory: async (configservice: ConfigService) => ({
|
||||
type: 'mariadb',
|
||||
@@ -26,7 +26,7 @@ import { User } from "./users/entities/user.entity";
|
||||
password: configservice.get('DB_PASSWORD'),
|
||||
database: configservice.get('DB_DATABASE'),
|
||||
entities: [User],
|
||||
synchronize: configservice.get('DB_SYNCRONIZE'),
|
||||
synchronize:true,
|
||||
}),
|
||||
}),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user