From a44474b191b57aa00e1951b56e674e343e45559e Mon Sep 17 00:00:00 2001 From: timerzz Date: Fri, 6 Sep 2024 11:01:06 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- structs/storage/article.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structs/storage/article.go b/structs/storage/article.go index 8f73a2a..eea0b78 100644 --- a/structs/storage/article.go +++ b/structs/storage/article.go @@ -53,7 +53,7 @@ func (a *articleApi) Update(article v2.Article, selects ...string) error { if len(selects) > 0 { selects = []string{"remark", "exclude"} } - return a.db.Debug().Select(selects).Omit(clause.Associations).Updates(article).Error + return a.db.Debug().Select(selects).Updates(article).Error } // ******************Findĺ’ŚList