Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Dec 25, 2018
1 parent 399e984 commit a8201f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/url_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit a8201f7

Please sign in to comment.