diff --git a/services/client/common/methods/client/salesperson.js b/services/client/common/methods/client/salesperson.js index 23ad812b18..01a7a48ece 100644 --- a/services/client/common/methods/client/salesperson.js +++ b/services/client/common/methods/client/salesperson.js @@ -1,4 +1,4 @@ -module.exports = (Client) => { +module.exports = Client => { Client.remoteMethod('activeSalesPerson', { description: 'returns actives employees with salesperson role', accessType: 'READ', @@ -72,4 +72,4 @@ module.exports = (Client) => { return results; } -}; \ No newline at end of file +}; diff --git a/services/production/common/methods/fake-production/list.js b/services/production/common/methods/fake-production/list.js index dd389c3a0f..cfbad96511 100644 --- a/services/production/common/methods/fake-production/list.js +++ b/services/production/common/methods/fake-production/list.js @@ -26,7 +26,7 @@ module.exports = function(Self) { } buildWhereObject(); - + let where = Self.dataSource.connector.buildWhere(Self.modelName, filter.where); let query = `SELECT * FROM tmp.production ${where.sql} GROUP BY RouteFk ORDER BY routeFk`; conn.query(query, where.params, onFinish); @@ -60,7 +60,7 @@ module.exports = function(Self) { } else if (Object.keys(filter).length) { newFilter = filter; } - + filter.where = newFilter; }