CAU 2593 Busqueda Avanzada - campo telefono busca en: phone or mobile
This commit is contained in:
parent
e22e9c7f13
commit
4e087139b4
|
@ -31,7 +31,10 @@ module.exports = function(Client){
|
||||||
city: {regexp: p.city},
|
city: {regexp: p.city},
|
||||||
postcode: p.postcode,
|
postcode: p.postcode,
|
||||||
email: {regexp: p.email},
|
email: {regexp: p.email},
|
||||||
phone: p.phone
|
or: [
|
||||||
|
{phone: p.phone},
|
||||||
|
{mobile: p.phone}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
skip: (p.page - 1) * p.size,
|
skip: (p.page - 1) * p.size,
|
||||||
limit: p.size
|
limit: p.size
|
||||||
|
|
Loading…
Reference in New Issue