Merge pull request 'hotFix-dev_updateDiscount' (!1126) from hotFix-dev_updateDiscount into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #1126 Reviewed-by: Joan Sanchez <joan@verdnatura.es>
This commit is contained in:
commit
a681cc03af
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue