nuevo servicio especial listo
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user