refactor
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
1cc199e26b
commit
0cae852dea
|
@ -3,10 +3,9 @@ module.exports = Self => {
|
|||
const instance = ctx.instance;
|
||||
const models = Self.app.models;
|
||||
|
||||
const clientConfig = await models.ClientConfig.findOne({
|
||||
where: {id: 1}
|
||||
});
|
||||
const clientConfig = await models.ClientConfig.findOne();
|
||||
const maxCreditRows = clientConfig.maxCreditRows;
|
||||
|
||||
const clientCredit = await models.ClientCredit.find({
|
||||
where: {clientFk: instance.clientFk},
|
||||
order: 'created DESC',
|
||||
|
|
Loading…
Reference in New Issue