nuevo servicio especial listo

This commit is contained in:
2021-02-10 16:45:15 -06:00
parent 027fddf9cc
commit f76237ea20
8 changed files with 162 additions and 38 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ const nuevo = async (body, file) => {
? validar.validarTexto(
body.programaInterno,
'El texto programa interno.',
80
250
)
: '';
const profesor = body.profesor
@@ -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.ne]: 10 } },
where: { idUsuario, idStatus: { [Op.lt]: 10 } },
});
})
.then(async (res) => {