cancelar servicio
This commit is contained in:
@@ -17,9 +17,9 @@ const serviciosResponsable = async (body) => {
|
||||
let numeroCuenta = body.numeroCuenta
|
||||
? validar.validarNumeroCuenta(body.numeroCuenta)
|
||||
: '';
|
||||
let where = {};
|
||||
let where = { [Op.and]: [{ idStatus: { [Op.ne]: 10 } }] };
|
||||
|
||||
if (idStatus) where.idStatus = idStatus;
|
||||
if (idStatus) where[Op.and].push({ idStatus });
|
||||
return Usuario.findOne({ where: { idUsuario } })
|
||||
.then((res) => {
|
||||
if (!res) throw new Error('No existe este usuario.');
|
||||
|
||||
Reference in New Issue
Block a user