errores pequeños

This commit is contained in:
xXpuma99Xx
2021-11-29 00:46:38 -06:00
parent fd2878c514
commit b30b7ec57b
5 changed files with 10 additions and 11 deletions
+6 -6
View File
@@ -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);
});
-1
View File
@@ -30,7 +30,6 @@ const nuevo = async (body, file) => {
: '';
let carpeta = '';
console.log(fechaInicio.format());
return Usuario.findOne({
where: { idUsuario },
})
+1 -1
View File
@@ -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 } },