removed eslint problems

This commit is contained in:
Daniel Herrero 2017-11-21 11:59:43 +01:00
parent 730d52169e
commit 28c4cdfa5f
2 changed files with 4 additions and 4 deletions

View File

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

View File

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