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) {
|
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
|
||||||
|
|
|
@ -235,7 +235,7 @@
|
||||||
|
|
||||||
<!-- Price Popover -->
|
<!-- Price Popover -->
|
||||||
<vn-popover
|
<vn-popover
|
||||||
vn-id="edit-price-popover"
|
vn-id="editPricePopover"
|
||||||
on-open="$ctrl.getMana()">
|
on-open="$ctrl.getMana()">
|
||||||
<div class="edit-popover">
|
<div class="edit-popover">
|
||||||
<vn-spinner class="vn-pa-xs"
|
<vn-spinner class="vn-pa-xs"
|
||||||
|
|
Loading…
Reference in New Issue