list prod
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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,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');
|
||||
|
||||
@@ -4,7 +4,7 @@ const app = express();
|
||||
app.use(require('./Status'));
|
||||
app.use(require('./Usuario'));
|
||||
app.use(require('./Servicio'));
|
||||
app.use(require('./CasoEspecial'));
|
||||
// app.use(require('./CasoEspecial'));
|
||||
app.use(require('./Programa'));
|
||||
app.use(require('./CuestionarioAlumno'));
|
||||
app.use(require('./CuestionarioPrograma'));
|
||||
|
||||
Reference in New Issue
Block a user