Skip to content

Commit

Permalink
Remove realtime indexing from TransferJob
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaldogsbody authored Aug 28, 2024
1 parent 028cdf3 commit 12cbd83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/transfer_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def perform(doi_id, options = {})
doi = Doi.where(doi: doi_id).first

if doi.present? && options[:client_target_id].present?
__elasticsearch__.index_document if doi.update(datacentre: options[:client_target_id]) == true
doi.update(datacentre: options[:client_target_id])

Rails.logger.info "[Transfer] Transferred DOI #{doi.doi}."
elsif doi.present?
Expand Down

0 comments on commit 12cbd83

Please sign in to comment.