Se generalizó envio de correos a diferentes sistemas

This commit is contained in:
evenegas
2025-05-02 16:06:58 -06:00
parent 66c81120aa
commit 336bf545b7
19 changed files with 742 additions and 307 deletions
+5 -2
View File
@@ -12,7 +12,10 @@ import { SistemaModule } from './sistema/sistema.module';
@Module({
imports: [
ConfigModule.forRoot(),
ConfigModule.forRoot(
{isGlobal: true}
),
TypeOrmModule.forRoot({
type: 'mysql',
host: process.env.db_host,
@@ -21,7 +24,7 @@ import { SistemaModule } from './sistema/sistema.module';
password: process.env.db_password,
port: Number(process.env.db_port),
synchronize: true,
dropSchema: true, // elimina la base de datos
dropSchema: false, // elimina la base de datos
// logging: true, // Habilita los logs para depuración
autoLoadEntities: true, // Carga automáticamente las entidades