removed role from activeSalesPerson

This commit is contained in:
Daniel Herrero 2018-02-15 13:11:23 +01:00
parent 1b4fd50929
commit 505ff1dcfe
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ module.exports = Client => {
FROM worker em FROM worker em
JOIN account.user ac ON em.userFk = ac.id JOIN account.user ac ON em.userFk = ac.id
JOIN account.role r ON r.id = ac.role JOIN account.role r ON r.id = ac.role
WHERE ac.active AND r.\`name\` = 'salesPerson' ${where.sql} WHERE ac.active ${where.sql}
ORDER BY em.name ASC ORDER BY em.name ASC
LIMIT ? OFFSET ?`; LIMIT ? OFFSET ?`;