app/models/file_download_stat.rb in hyrax-3.2.0 vs app/models/file_download_stat.rb in hyrax-3.3.0
- old
+ new
@@ -10,13 +10,13 @@
profile = Hyrax::Analytics.profile
unless profile
Rails.logger.error("Google Analytics profile has not been established. Unable to fetch statistics.")
return []
end
- profile.hyrax__download(sort: 'date',
- start_date: start_date,
- end_date: Date.yesterday,
- limit: 10_000)
+ profile.hyrax__analytics__google__download(sort: 'date',
+ start_date: start_date,
+ end_date: Date.yesterday,
+ limit: 10_000)
.for_file(file.id)
end
# this is called by the parent class
def filter(file)