removed eslint problems
This commit is contained in:
parent
730d52169e
commit
28c4cdfa5f
|
@ -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;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue