Skip to content

Commit

Permalink
Update app/serializers/user_classification_counts_serializer.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Zach Wolfenbarger <[email protected]>
  • Loading branch information
yuenmichelle1 and zwolf authored Oct 18, 2024
1 parent ec1ea38 commit 4127482
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/serializers/user_classification_counts_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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] } }
Expand Down

0 comments on commit 4127482

Please sign in to comment.