0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-23 07:43:18 -05:00

Fix history count failure (#17351)

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
Lunny Xiao 2021-10-21 18:06:19 +08:00 committed by GitHub
parent 83df0caf15
commit f3c7f10c9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,7 +119,7 @@ func QueryIssueContentHistoryEditedCountMap(dbCtx context.Context, issueID int64
Table("issue_content_history"). Table("issue_content_history").
Where(builder.Eq{"issue_id": issueID}). Where(builder.Eq{"issue_id": issueID}).
GroupBy("comment_id"). GroupBy("comment_id").
Having("history_count > 1"). Having("count(1) > 1").
Find(&records) Find(&records)
if err != nil { if err != nil {
log.Error("can not query issue content history count map. err=%v", err) log.Error("can not query issue content history count map. err=%v", err)