list prod

This commit is contained in:
2021-02-16 15:44:19 -06:00
parent c77290b19f
commit b7c7be06a7
5 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ const nuevo = async (body, file) => {
const programaInterno = body.programaInterno
? validar.validarTexto(
body.programaInterno,
'El texto programa interno.',
'El texto programa interno',
250
)
: '';
@@ -44,7 +44,7 @@ const nuevo = async (body, file) => {
.then((res) => {
if (!res) throw new Error('Esta carrera no existe en la db.');
return Servicio.findOne({
where: { idUsuario, idStatus: { [Op.lt]: 10 } },
where: { idUsuario, idStatus: { [Op.ne]: 10 } },
});
})
.then(async (res) => {
+1 -1
View File
@@ -10,7 +10,7 @@ const serviciosAdmin = async (body) => {
const pagina = validar.validarId(body.pagina);
const where = body.idStatus
? { idStatus: validar.validarId(body.idStatus) }
: { idStatus: { [Op.lte]: 10 } };
: {};
const nombre = body.nombre
? validar.validarTexto(body.nombre, 'El nombre', 60)
: '';
@@ -12,7 +12,7 @@ const serviciosResponsable = async (body) => {
const idUsuario = validar.validarId(body.idUsuario);
const where = body.idStatus
? { idStatus: validar.validarId(body.idStatus) }
: { idStatus: { [Op.lt]: 10 } };
: { idStatus: { [Op.ne]: 10 } };
const nombre = body.nombre
? validar.validarTexto(body.nombre, 'El nombre', 60)
+1 -1
View File
@@ -1,5 +1,5 @@
require('../../config/config');
const sybase = require('../../config/sybase');
// const sybase = require('../../config/sybase');
const validar = require('../../helper/validar');
const axios = require('axios');
const Usuario = require('../../db/tablas/Usuario');