更改:统计issue数量排除项目管理数据
This commit is contained in:
		
							parent
							
								
									be2491cd90
								
							
						
					
					
						commit
						07918dbb04
					
				| 
						 | 
					@ -212,7 +212,7 @@ class Cache::V2::PlatformStatisticService < ApplicationService
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def reset_platform_max_issue_count
 | 
					  def reset_platform_max_issue_count
 | 
				
			||||||
    max_issue = Issue.issue_issue.group(:project_id).count.sort_by{|i|i[1]}.last || []
 | 
					    max_issue = Issue.where.not(project_id: 0).issue_issue.group(:project_id).count.sort_by{|i|i[1]}.last || []
 | 
				
			||||||
    $redis_cache.hset(platform_statistic_key, max_issue_count_key, max_issue[1].nil? ? 0 : max_issue[1])
 | 
					    $redis_cache.hset(platform_statistic_key, max_issue_count_key, max_issue[1].nil? ? 0 : max_issue[1])
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue