Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into 3928-worker.time-control_sendMail
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
commit
9cd57bfde9
|
@ -188,7 +188,7 @@ module.exports = Self => {
|
||||||
async function createSaleComponent(saleId, value, componentId, myOptions) {
|
async function createSaleComponent(saleId, value, componentId, myOptions) {
|
||||||
const models = Self.app.models;
|
const models = Self.app.models;
|
||||||
|
|
||||||
return models.SaleComponent.create({
|
return models.SaleComponent.upsert({
|
||||||
saleFk: saleId,
|
saleFk: saleId,
|
||||||
value: value,
|
value: value,
|
||||||
componentFk: componentId
|
componentFk: componentId
|
||||||
|
|
Loading…
Reference in New Issue