#837 now it filters with name and firstname

This commit is contained in:
Gerard 2018-11-27 09:46:44 +01:00
parent 72536571f5
commit 78ac80ad72
1 changed files with 1 additions and 4 deletions

View File

@ -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};
}