From 217039202d9a932fabb81403d2f5c0231a106fa6 Mon Sep 17 00:00:00 2001 From: timerzz Date: Tue, 19 Nov 2024 14:51:38 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E6=9B=B4=E6=96=B0provider=20article?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E6=9B=B4=E6=96=B0=E5=BA=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- structs/storage/provider-article.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }