diff --git a/app/models/doi.rb b/app/models/doi.rb index b802b49bf..4349a64d0 100644 --- a/app/models/doi.rb +++ b/app/models/doi.rb @@ -768,7 +768,7 @@ def self.set_handle while cursor > prev_cursor do response = Doi.query("-registered:* +url:* -aasm_state:draft -provider_id:ethz -provider_id:europ", page: { size: 1000, cursor: cursor }) prev_cursor = cursor - cursor = Array.wrap(response.results.results.last[:sort]).first + cursor = Array.wrap(response.results.results.last.to_h[:sort]).first response.results.results.each do |d| HandleJob.perform_later(d.doi) @@ -791,7 +791,7 @@ def self.set_url while cursor > prev_cursor do response = Doi.query("-url:* (+provider_id:ethz OR -aasm_status:draft)", page: { size: 1000, cursor: cursor }) prev_cursor = cursor - cursor = Array.wrap(response.results.results.last[:sort]).first + cursor = Array.wrap(response.results.results.last.to_h[:sort]).first response.results.results.each do |d| UrlJob.perform_later(d.doi) @@ -814,7 +814,7 @@ def self.set_minted while cursor > prev_cursor do response = Doi.query("url:* +provider_id:ethz +aasm_state:draft", page: { size: 1000, cursor: cursor }) prev_cursor = cursor - cursor = Array.wrap(response.results.results.last[:sort]).first + cursor = Array.wrap(response.results.results.last.to_h[:sort]).first response.results.results.each do |d| UrlJob.perform_later(d.doi) diff --git a/config/initializers/_version.rb b/config/initializers/_version.rb index 74aeac24f..9bbd4864c 100644 --- a/config/initializers/_version.rb +++ b/config/initializers/_version.rb @@ -1,5 +1,5 @@ module Lupo class Application - VERSION = "2.3.29" + VERSION = "2.3.30" end end \ No newline at end of file