Change count to size in the export service

This commit is contained in:
Eugene Burmakin 2024-06-14 19:52:05 +02:00
parent 1257f295be
commit da8792bbe1

View file

@ -13,9 +13,9 @@ class Exports::Create
pp "====Exporting data for #{user.email} from #{start_at} to #{end_at}"
points = time_framed_points
points = time_framed_points
pp "====Exporting #{points.count} points"
pp "====Exporting #{points.size} points"
data = ::ExportSerializer.new(points, user.email).call
file_path = Rails.root.join('public', 'exports', "#{export.name}.json")