Skip to content

Commit

Permalink
Update the query for fileset in user stat importer
Browse files Browse the repository at this point in the history
This commit will change the query for fileset to using the Valkyrie way.
  • Loading branch information
Kirk Wang committed Jan 23, 2025
1 parent b46d95b commit f4ed535
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 f4ed535

Please sign in to comment.