diff --git a/structs/storage/provider-article.go b/structs/storage/provider-article.go index 839abf2..3896408 100644 --- a/structs/storage/provider-article.go +++ b/structs/storage/provider-article.go @@ -89,7 +89,7 @@ func (p *providerArticleApi) Get(query *GetProviderArticleQuery) (article v2.Pro func (p *providerArticleApi) Upsert(article v2.ProviderArticle) error { if err := p.db.Clauses(clause.OnConflict{ Columns: []clause.Column{{Name: "provider_id"}, {Name: "sku_id"}}, - DoUpdates: clause.AssignmentColumns([]string{"cost"}), + DoUpdates: clause.AssignmentColumns([]string{"cost", "available"}), }).Create(&article).Error; err != nil { return err }