busqueda mas avanzada

This commit is contained in:
Lemuel Marquez
2021-06-07 23:52:42 -05:00
parent 3330509127
commit e5b1171f1a
3 changed files with 8 additions and 8 deletions
@@ -33,8 +33,10 @@ const serviciosResponsable = 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 },