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