Skip to content

Commit 72a5a9b

Browse files
lunnywxiaoguang
authored andcommitted
Fix history count failure (go-gitea#17351)
Co-authored-by: wxiaoguang <[email protected]>
1 parent a7ec0a9 commit 72a5a9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/issues/content_history.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func QueryIssueContentHistoryEditedCountMap(dbCtx context.Context, issueID int64
119119
Table("issue_content_history").
120120
Where(builder.Eq{"issue_id": issueID}).
121121
GroupBy("comment_id").
122-
Having("history_count > 1").
122+
Having("count(1) > 1").
123123
Find(&records)
124124
if err != nil {
125125
log.Error("can not query issue content history count map. err=%v", err)

0 commit comments

Comments
 (0)