Skip to content

Commit

Permalink
fix syntax #413
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Feb 10, 2020
1 parent 5335401 commit a173d64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/doi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand All @@ -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

Expand Down

0 comments on commit a173d64

Please sign in to comment.