error undefined correo responsable

This commit is contained in:
Lemuel Marquez
2021-05-13 01:26:27 -05:00
parent c862f816d1
commit 7de43b5daf
3 changed files with 2 additions and 8 deletions
@@ -14,7 +14,7 @@ const newPasswordResponsable = async (body) => {
if (!res) throw new Error('No existe este Usuario.');
if (res.idTipoUsuario != 2)
throw new Error('Este usuario no es de tipo responsable.');
correo = correos.enviarSec(password, res.correo, res.nombre);
correo = correos.enviarSec(password, res.usuario, res.nombre);
return gmail(correo.subject, res.usuario, correo.msj);
})
.then((res) =>