diff --git a/services/client/common/methods/client/roles.js b/services/client/common/methods/client/roles.js index 1e8a1f475..a86fa5376 100644 --- a/services/client/common/methods/client/roles.js +++ b/services/client/common/methods/client/roles.js @@ -32,7 +32,7 @@ module.exports = Client => { }); Client.getRoleCustomer = (id, context, callback) => { - let query = `SELECT count(*) isCustomer FROM Account ac JOIN Role ON Role.id = ac.roleFK WHERE Role.\`name\`='customer' AND ac.id IN (?)`; + let query = `SELECT count(*) isCustomer FROM salix.Account ac JOIN salix.Role r ON r.id = ac.roleFK WHERE r.\`name\`='customer' AND ac.id IN (?)`; const params = [id]; Client.rawSql(query, params, callback) .then(response => {