Carga masiva completa

This commit is contained in:
Patriots01
2026-01-14 19:02:47 +00:00
parent 62b71060be
commit 151d2e8718
+7 -2
View File
@@ -13,6 +13,8 @@ import { ValidacionService } from 'src/helpers.services/validacion.service';
import { AuthService } from 'src/auth/auth.service';
import { gmail } from 'src/helpers.services/gmail.service';
import { SendMailDto } from 'src/helpers.services/dto/send-email.dto';
const { enviarSec } = require('../helpers.services/msjCorreos');
@Injectable()
export class ProgramaService {
@@ -71,12 +73,15 @@ export class ProgramaService {
//Agregamos esta linea para verificar los logs
console.log("Password generado:", this.authService.generarPassword());
console.log("prog:", prog);
if (!responsable) {
const password = await this.authService.encriptar(
this.authService.generarPassword(),
await this.authService.generarPassword(),
);
const correoInfo = enviarSec(password, prog.correo, prog.nombre);
responsable = await this.usuarioRepo.create({