Merge pull request 'hotFix-dev_updateDiscount' (!1126) from hotFix-dev_updateDiscount into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #1126
Reviewed-by: Joan Sanchez <joan@verdnatura.es>
This commit is contained in:
Vicent Llopis 2022-11-08 07:01:37 +00:00
commit a681cc03af
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ module.exports = Self => {
async function createSaleComponent(saleId, value, componentId, myOptions) {
const models = Self.app.models;
return models.SaleComponent.create({
return models.SaleComponent.upsert({
saleFk: saleId,
value: value,
componentFk: componentId