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)
|
||||
|
||||
Reference in New Issue
Block a user