From a8201f724abdc438dd6f42c5fef07e5f7177be46 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Tue, 25 Dec 2018 12:48:45 +0100 Subject: [PATCH] fix typo --- app/jobs/url_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/url_job.rb b/app/jobs/url_job.rb index 33fc9a2ab..2bf5bd6d7 100644 --- a/app/jobs/url_job.rb +++ b/app/jobs/url_job.rb @@ -11,7 +11,7 @@ def perform(doi) response = Maremma.head(doi.identifier, limit: 0) if response.headers.present? - if doi.is_registered_or_findable && doi.minted.blank? + if doi.is_registered_or_findable? && doi.minted.blank? doi.update_attributes(url: response.headers["location"], minted: Time.zone.now) else doi.update_attributes(url: response.headers["location"])