diff --git a/structs/storage/seller-article.go b/structs/storage/seller-article.go index 6095533..540cd63 100644 --- a/structs/storage/seller-article.go +++ b/structs/storage/seller-article.go @@ -82,7 +82,7 @@ func (p *sellerArticleApi) Get(query *GetSellerArticleQuery) (article v2.SellerA func (p *sellerArticleApi) Upsert(article v2.SellerArticle) error { return p.db.Clauses(clause.OnConflict{ - Columns: []clause.Column{{Name: "seller_id"}, {Name: "sku_id"}}, + Columns: []clause.Column{{Name: "id"}}, DoUpdates: clause.AssignmentColumns([]string{"sell", "exclude"}), }).Create(&article).Error }