error undefined correo responsable
This commit is contained in:
@@ -15,7 +15,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) =>
|
||||
|
||||
Reference in New Issue
Block a user