using cuestionario2 has atribute, create credentials for testing

This commit is contained in:
Your Name
2025-02-13 13:57:28 -05:00
parent f89b7e05db
commit 7bef28e60f
22 changed files with 251 additions and 39 deletions
@@ -78,13 +78,19 @@ const registroValidado = async (body) => {
gmail(correoResponsable.subject, emailResponsable, correoResponsable.msj)
)
.then((res) =>
Servicio.update(
{
let tempStatus = 3
if (process.env.MODE == "pruebas") tempStatus = 4
return Servicio.update(
// Producción
{ idStatus: 3, direccion, telefono, fechaNacimiento },
// { idStatus: 3, direccion, telefono, fechaNacimiento },
// Pruebas
// { idStatus: 4, direccion, telefono, fechaNacimiento },
{ idStatus: tempStatus, direccion, telefono, fechaNacimiento },
{ where: { idServicio } }
)
}
)
.then((res) => ({
message: 'Haz terminado el registro de tu Servicio Social correctamente.',