From f54b3a0acdff38489512a5eb0659043b64dfffed Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Tue, 4 Feb 2020 11:41:48 +0100 Subject: [PATCH] don't trigger reindexing of dois. #390 --- app/models/concerns/indexable.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/models/concerns/indexable.rb b/app/models/concerns/indexable.rb index 479ada996..9d6afad8f 100644 --- a/app/models/concerns/indexable.rb +++ b/app/models/concerns/indexable.rb @@ -10,13 +10,13 @@ module Indexable if self.class.name == "Doi" update_column(:indexed, Time.zone.now) send_import_message(self.to_jsonapi) if aasm_state == "findable" && !Rails.env.test? && !%w(crossref medra kisti jalc op).include?(client.symbol.downcase.split(".").first) - elsif self.class.name == "Event" - # reindex dois associated with Event - @source_doi = Doi.where(doi: source_doi).first if source_doi - IndexJob.perform_later(@source_doi) if @source_doi + # elsif self.class.name == "Event" + # # reindex dois associated with Event + # @source_doi = Doi.where(doi: source_doi).first if source_doi + # IndexJob.perform_later(@source_doi) if @source_doi - @target_doi = Doi.where(doi: target_doi).first if target_doi - IndexJob.perform_later(@target_doi) if @target_doi + # @target_doi = Doi.where(doi: target_doi).first if target_doi + # IndexJob.perform_later(@target_doi) if @target_doi end end