Removed where property dependency
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
87d4964438
commit
8969882793
|
@ -24,7 +24,7 @@ module.exports = Self => {
|
||||||
if (typeof options == 'object')
|
if (typeof options == 'object')
|
||||||
Object.assign(myOptions, options);
|
Object.assign(myOptions, options);
|
||||||
|
|
||||||
let statesList = await models.State.find({where: filter.where}, myOptions);
|
let statesList = await models.State.find(filter, myOptions);
|
||||||
const isProduction = await models.Account.hasRole(userId, 'production', myOptions);
|
const isProduction = await models.Account.hasRole(userId, 'production', myOptions);
|
||||||
const isSalesPerson = await models.Account.hasRole(userId, 'salesPerson', myOptions);
|
const isSalesPerson = await models.Account.hasRole(userId, 'salesPerson', myOptions);
|
||||||
const isAdministrative = await models.Account.hasRole(userId, 'administrative', myOptions);
|
const isAdministrative = await models.Account.hasRole(userId, 'administrative', myOptions);
|
||||||
|
|
Loading…
Reference in New Issue