summaryrefslogtreecommitdiffstats
path: root/models/issues
diff options
context:
space:
mode:
Diffstat (limited to 'models/issues')
-rw-r--r--models/issues/content_history.go2
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)