Skip to content

Commit

Permalink
Merge pull request #1232 from datacite/fix-transferjob
Browse files Browse the repository at this point in the history
Remove realtime indexing from TransferJob
  • Loading branch information
digitaldogsbody authored Aug 28, 2024
2 parents 028cdf3 + 12cbd83 commit ad428b9
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 ad428b9

Please sign in to comment.