Skip to content

Commit

Permalink
ability to reindex idividual items
Browse files Browse the repository at this point in the history
  • Loading branch information
orangewolf committed Jul 22, 2024
1 parent 337741b commit 7172909
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/jobs/reindex_item_job.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true

class ReindexItemJob < ApplicationJob
def perform(item_id)
item = ActiveFedora::Base.find(item_id)
item.update_index
end
end

0 comments on commit 7172909

Please sign in to comment.