From 07918dbb04df481a12165bf503829774ead24f7c Mon Sep 17 00:00:00 2001 From: yystopf Date: Thu, 30 May 2024 08:31:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=EF=BC=9A=E7=BB=9F=E8=AE=A1is?= =?UTF-8?q?sue=E6=95=B0=E9=87=8F=E6=8E=92=E9=99=A4=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/cache/v2/platform_statistic_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/cache/v2/platform_statistic_service.rb b/app/services/cache/v2/platform_statistic_service.rb index a7d9437a0..5de758513 100644 --- a/app/services/cache/v2/platform_statistic_service.rb +++ b/app/services/cache/v2/platform_statistic_service.rb @@ -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