diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-10-21 18:06:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-21 18:06:19 +0800 |
commit | f3c7f10c9f8aaa7479a99b037a8cc1cad94cc801 (patch) | |
tree | 7bbc850866f06024d14e9e8d213d94e93b8b5df2 /models/issues/content_history.go | |
parent | 83df0caf15c4a8c3b9336987f329501507c6d527 (diff) | |
download | gitea-f3c7f10c9f8aaa7479a99b037a8cc1cad94cc801.tar.gz gitea-f3c7f10c9f8aaa7479a99b037a8cc1cad94cc801.zip |
Fix history count failure (#17351)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'models/issues/content_history.go')
-rw-r--r-- | models/issues/content_history.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issues/content_history.go b/models/issues/content_history.go index 697d54b641..04c30fde92 100644 --- a/models/issues/content_history.go +++ b/models/issues/content_history.go @@ -119,7 +119,7 @@ func QueryIssueContentHistoryEditedCountMap(dbCtx context.Context, issueID int64 Table("issue_content_history"). Where(builder.Eq{"issue_id": issueID}). GroupBy("comment_id"). - Having("history_count > 1"). + Having("count(1) > 1"). Find(&records) if err != nil { log.Error("can not query issue content history count map. err=%v", err) |