diff --git a/app/services/hyrax/statistics/users/over_time.rb b/app/services/hyrax/statistics/users/over_time.rb index d15771a23d..8f38faea4b 100644 --- a/app/services/hyrax/statistics/users/over_time.rb +++ b/app/services/hyrax/statistics/users/over_time.rb @@ -26,7 +26,9 @@ def query(date_string) end def point(date_string) - relation.where(query(date_string)).count + # convert the User::ActiveRecord_Relation to an array so that ".size" returns a number, + # instead of a hash of { user_id: size } + relation.where(query(date_string)).to_a.size end end end