error undefined correo responsable
This commit is contained in:
@@ -10,7 +10,7 @@ const Usuario = require(`${dbPath}/Usuario`);
|
||||
|
||||
const liberacion = async (body) => {
|
||||
const idServicio = validar.validarId(body.idServicio);
|
||||
const update = { idStatus: 6, fechaLiberacion: moment() };
|
||||
const update = { idStatus: 6, fechaLiberacion: moment().format() };
|
||||
let correo = {};
|
||||
|
||||
return Servicio.findOne({
|
||||
|
||||
@@ -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