fix: error duplicated key
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
2f22753a65
commit
81a0cfe581
|
@ -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
|
||||
|
|
|
@ -235,7 +235,7 @@
|
|||
|
||||
<!-- Price Popover -->
|
||||
<vn-popover
|
||||
vn-id="edit-price-popover"
|
||||
vn-id="editPricePopover"
|
||||
on-open="$ctrl.getMana()">
|
||||
<div class="edit-popover">
|
||||
<vn-spinner class="vn-pa-xs"
|
||||
|
|
Loading…
Reference in New Issue