busqueda mas avanzada
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user