comentar los inserts a la base de datos

This commit is contained in:
Your Name
2025-04-02 09:50:01 -06:00
parent 71e39eb65e
commit 557beeab60
2 changed files with 8 additions and 3 deletions
+5 -3
View File
@@ -53,7 +53,7 @@ export class MailService {
let resMail = await this.transporter.sendMail(mailOptions);
const statusTexto = resMail.accepted.length > 0 ? "Enviado" : "Fallido";
/*
let status = await this.statusRepository.findOne({ where: { status: statusTexto } });
@@ -70,11 +70,13 @@ export class MailService {
destinatario: to,
remitente: process.env.USER_GMAIL,
});
}); */
if(!resMail){
throw new Error("fallo")
}
this.correoRepository.save(info);
//this.correoRepository.save(info);
+3
View File
@@ -6,6 +6,9 @@ import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.enableCors();
const config = new DocumentBuilder()
.setTitle('Documentacion de la api de votaciones_mails v2')
.setDescription(