mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix history count failure (#17351)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user