fix: select one result only
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2022-10-17 08:29:09 +02:00
parent cdce628038
commit 787d10aac6
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ module.exports = Self => {
where: {code: 'manaClaim'}
}, myOptions);
const oldComponent = await models.SaleComponent.find({
const [oldComponent] = await models.SaleComponent.find({
where: {
and: [
{saleFk: sale.id},