From 307969070bb0022091ac46ae0e3322a98e138e9c Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Mon, 21 Dec 2020 22:01:26 +0100 Subject: [PATCH] fix variable. #690 --- 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 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