From a173d644fc654dc94962f266d9f3c70e06634718 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Mon, 10 Feb 2020 22:33:31 +0100 Subject: [PATCH] fix syntax #413 --- app/models/doi.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/doi.rb b/app/models/doi.rb index 60ea106df..aed0f97da 100644 --- a/app/models/doi.rb +++ b/app/models/doi.rb @@ -814,7 +814,7 @@ def self.query(query, options={}) response end - self.index_one(doi_id: nil) + def self.index_one(doi_id: nil) doi = Doi.where(doi: doi_id).first if doi.nil? Rails.logger.error "[MySQL] DOI " + doi_id + " not found." @@ -824,7 +824,7 @@ def self.query(query, options={}) doi.source_events.each { |event| IndexJob.perform_later(event) } doi.target_events.each { |event| IndexJob.perform_later(event) } sleep 1 - + IndexJob.perform_later(doi) end