errores pequeños
This commit is contained in:
@@ -133,12 +133,12 @@ const cargaMasiva = async (file) => {
|
||||
mensaje += '\n';
|
||||
}
|
||||
await gmail('Reporte carga masiva', 'lemuel@acatlan.unam.mx', mensaje);
|
||||
await gmail('Reporte carga masiva', 'dscad@acatlan.unam.mx', mensaje);
|
||||
await gmail(
|
||||
'Reporte carga masiva',
|
||||
'tramites.ss@acatlan.unam.mx',
|
||||
mensaje
|
||||
);
|
||||
// await gmail('Reporte carga masiva', 'dscad@acatlan.unam.mx', mensaje);
|
||||
// await gmail(
|
||||
// 'Reporte carga masiva',
|
||||
// 'tramites.ss@acatlan.unam.mx',
|
||||
// mensaje
|
||||
// );
|
||||
|
||||
fs.unlinkSync(path);
|
||||
});
|
||||
|
||||
@@ -30,7 +30,6 @@ const nuevo = async (body, file) => {
|
||||
: '';
|
||||
let carpeta = '';
|
||||
|
||||
console.log(fechaInicio.format());
|
||||
return Usuario.findOne({
|
||||
where: { idUsuario },
|
||||
})
|
||||
|
||||
@@ -44,7 +44,7 @@ const serviciosAdmin = async (body) => {
|
||||
idServicio: res.rows[i].idServicio,
|
||||
fechaInicio: moment(res.rows[i].fechaInicio).format(),
|
||||
fechaFin: moment(res.rows[i].fechaFin).format(),
|
||||
createdAt: moment(res.rows[i].fechaFin).format(),
|
||||
createdAt: moment(res.rows[i].createdAt).format(),
|
||||
Usuario: {
|
||||
idUsuario: res.rows[i].Usuario.idUsuario,
|
||||
usuario: res.rows[i].Usuario.usuario,
|
||||
|
||||
@@ -11,7 +11,7 @@ const responsableUpdate = async (body) => {
|
||||
if (!res)
|
||||
throw new Error('No existe este responsable en la base de datos.');
|
||||
if (res.idTipoUsuario !== 2)
|
||||
throw new Error('No es un usuaior de tipo responasble.');
|
||||
throw new Error('Este usuario no es un responsable de programa.');
|
||||
if (body.correo) {
|
||||
const yaUsado = await Usuario.findOne({
|
||||
where: { usuario: body.correo, idUsuario: { [Op.not]: idUsuario } },
|
||||
|
||||
Reference in New Issue
Block a user