cambios minimos

This commit is contained in:
Lemuel Marquez
2021-05-25 13:06:57 -05:00
parent 65b4934bfd
commit 02f576a8b0
2 changed files with 14 additions and 13 deletions
+4 -2
View File
@@ -24,8 +24,10 @@ const serviciosAdmin = async (body) => {
{
model: Usuario,
where: {
usuario: { [Op.like]: `%${numeroCuenta}%` },
nombre: { [Op.like]: `%${nombre}%` },
[Op.and]: [
{ usuario: { [Op.like]: `%${numeroCuenta}%` } },
{ nombre: { [Op.like]: `%${nombre}%` } },
],
},
},
{ model: Carrera },