From 412748249b076eb9cf7d2aff774dbe7279b5dfb3 Mon Sep 17 00:00:00 2001 From: yuenmichelle1 <michelle.dano.yuen@gmail.com> Date: Fri, 18 Oct 2024 15:46:47 -0500 Subject: [PATCH] Update app/serializers/user_classification_counts_serializer.rb Co-authored-by: Zach Wolfenbarger <zach.wolfenbarger@gmail.com> --- app/serializers/user_classification_counts_serializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/serializers/user_classification_counts_serializer.rb b/app/serializers/user_classification_counts_serializer.rb index b4bac63..f0480ff 100644 --- a/app/serializers/user_classification_counts_serializer.rb +++ b/app/serializers/user_classification_counts_serializer.rb @@ -61,7 +61,7 @@ def project_contributions(order_by) if order_project_contributions_by_recents?(order_by) period_to_contributed_project_ids = @user_classification_counts.sort_by(&:period).reverse.group_by(&:period).transform_values do |uccs| - uccs.map { |ucc| ucc.project_id} + uccs.map(&:project_id) end recently_contributed_project_ids = period_to_contributed_project_ids.values.flatten.uniq recently_contributed_project_ids.map { |project_id| { project_id: , count: project_contributions[project_id] } }