Browse Source

更改:统计issue数量排除项目管理数据

pull/345/head
yystopf 2 years ago
parent
commit
07918dbb04
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/services/cache/v2/platform_statistic_service.rb

+ 1
- 1
app/services/cache/v2/platform_statistic_service.rb View File

@@ -212,7 +212,7 @@ class Cache::V2::PlatformStatisticService < ApplicationService
end

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])
end



Loading…
Cancel
Save