Skip to content

Commit f3c7f10

Browse files
lunnywxiaoguang
andauthored
Fix history count failure (#17351)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
1 parent 83df0ca commit f3c7f10

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)