diff --git a/structs/storage/provider-article.go b/structs/storage/provider-article.go index b0d3a95..1252fd4 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", "available", "updated_at"}), + DoUpdates: clause.AssignmentColumns([]string{"cost", "available", "updated_at", "ast"}), }).Create(&article).Error; err != nil { return err }