refs #6213 formatfix
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Pablo Natek 2023-09-18 07:38:30 +02:00
parent 8d9dcb1f3e
commit 55b53c86c4
1 changed files with 1 additions and 2 deletions

View File

@ -123,8 +123,7 @@ module.exports = Self => {
const {Supplier} = Self.app.models;
const supplier = await Supplier.findById(id, null, ctx.options);
if (supplier)
await supplier.updateAttribute('account', Number(supplier.account) + id, ctx.options);
await supplier?.updateAttribute('account', Number(supplier.account) + id, ctx.options);
}
});