Skip to content

Commit e912ac3

Browse files
committed
Fix history count failure
1 parent 3397fee commit e912ac3

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)