diff --git a/app/models/doi.rb b/app/models/doi.rb index 26767ca80..70f78ac27 100644 --- a/app/models/doi.rb +++ b/app/models/doi.rb @@ -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 @@ -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