Skip to content

Commit

Permalink
fix variable. #690
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Dec 21, 2020
1 parent ba06d80 commit 3079690
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 @@ -1278,7 +1278,7 @@ def self.import_by_ids(options = {})
DoiImportByIdJob.perform_later(options.merge(id: id))
unless Rails.env.test?
Rails.
logger.info "Queued importing for #{model} DOIs with IDs starting with #{
logger.info "Queued importing for #{options[:model]} DOIs with IDs starting with #{
id
}."
end
Expand Down Expand Up @@ -1386,7 +1386,7 @@ def self.import_by_id(options = {})

count = 0

model.where(id: id..(id + 499)).
collection.where(id: id..(id + 499)).
find_each do |doi|
IndexJob.perform_later(doi)
count += 1
Expand Down

0 comments on commit 3079690

Please sign in to comment.