fix sin bankEntity ya no falla
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
e1cc254f82
commit
7bd3bfddc3
|
@ -13,7 +13,7 @@ module.exports = Self => {
|
||||||
const bankEntity = await Self.app.models.BankEntity.findById(this.bankEntityFk);
|
const bankEntity = await Self.app.models.BankEntity.findById(this.bankEntityFk);
|
||||||
const filter = {
|
const filter = {
|
||||||
fields: ['code'],
|
fields: ['code'],
|
||||||
where: {id: bankEntity.countryFk}
|
where: {id: bankEntity?.countryFk}
|
||||||
};
|
};
|
||||||
|
|
||||||
const country = await Self.app.models.Country.findOne(filter);
|
const country = await Self.app.models.Country.findOne(filter);
|
||||||
|
|
Loading…
Reference in New Issue