From f1f3c69c4a5b1c80ac67b8d92e6c02e91a26692c Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Wed, 5 Jun 2019 15:46:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=9E=E8=AE=AD=E8=AF=84?= =?UTF-8?q?=E8=AE=BA=E6=95=B0=E4=B8=8D=E5=AF=B9=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/games_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/games_service.rb b/app/services/games_service.rb index 1ed2e398..f513316e 100644 --- a/app/services/games_service.rb +++ b/app/services/games_service.rb @@ -33,7 +33,7 @@ class GamesService st = game_challenge.st game_count = myshixun.games.count discusses_count = (current_user.admin? ? shixun.discusses.count : - shixun.discusses.where("hidden = false or user_id = :user_id", user_id: current_user.id)) + shixun.discusses.where("hidden = false or user_id = :user_id", user_id: current_user.id).count) mirror_name = myshixun.mirror_name user = myshixun.owner username = user.show_name