#837 now it filters with name and firstname
This commit is contained in:
parent
72536571f5
commit
78ac80ad72
|
@ -37,10 +37,7 @@ module.exports = Self => {
|
|||
case 'role':
|
||||
return {'r.name': value};
|
||||
case 'firstName':
|
||||
return {
|
||||
'w.firstName': {like: `%${value}%`},
|
||||
'w.name': {like: `%${value}%`},
|
||||
};
|
||||
return {or: [{'w.firstName': {like: `%${value}%`}}, {'w.name': {like: `%${value}%`}}]};
|
||||
case 'id':
|
||||
return {'w.id': value};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue