Skip to content

Commit

Permalink
Merge pull request #6992 from samvera/update-user-stat-importer-file-…
Browse files Browse the repository at this point in the history
…set-query

Update the query for fileset in user stat importer
  • Loading branch information
kirkkwang authored Feb 5, 2025
2 parents 2e4dc49 + cc85c78 commit 5b03f59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/hyrax/user_stat_importer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def sorted_users

def process_files(stats, user, start_date)
file_ids_for_user(user).each do |file_id|
file = ::FileSet.find(file_id)
file = Hyrax.query_service.find_by(id: file_id)
view_stats = extract_stats_for(object: file, from: FileViewStat, start_date: start_date, user: user)
stats = tally_results(view_stats, :views, stats) if view_stats.present?
delay
Expand Down

0 comments on commit 5b03f59

Please sign in to comment.