From e912ac373a5e6eca6705fd1789e13738f4506a4e Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 18 Oct 2021 21:40:03 +0800 Subject: [PATCH] Fix history count failure --- models/issues/content_history.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/issues/content_history.go b/models/issues/content_history.go index 697d54b6410c6..04c30fde9236d 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)