diff --git a/modules/client/back/methods/client/activeWorkersWithRole.js b/modules/client/back/methods/client/activeWorkersWithRole.js index 5e13e9bf6..3b0ccaac2 100644 --- a/modules/client/back/methods/client/activeWorkersWithRole.js +++ b/modules/client/back/methods/client/activeWorkersWithRole.js @@ -40,7 +40,7 @@ module.exports = Self => { return {or: [ {'w.firstName': {like: `%${value}%`}}, {'w.name': {like: `%${value}%`}}, - {'u.name': {like: `%${value}%`}} + {'u.nickname': {like: `%${value}%`}} ]}; case 'id': return {'w.id': value}; @@ -54,7 +54,7 @@ module.exports = Self => { myFilter = mergeFilters(myFilter, clientFilter); let stmt = new ParameterizedSQL( - `SELECT DISTINCT w.id, w.firstName, w.name + `SELECT DISTINCT w.id, w.firstName, w.name, u.nickname FROM worker w JOIN account.user u ON u.id = w.userFk JOIN account.roleRole i ON i.role = u.role