Skip to content

Commit

Permalink
fixed variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jul 18, 2019
1 parent 730d0c2 commit 04f4c1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/jobs/affiliation_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ def perform(doi_id)
doi = Doi.where(doi: doi_id).first

if doi.present?
new_creators = Array.wrap(creators).map do |c|
new_creators = Array.wrap(doi.creators).map do |c|
c["affiliation"] = { "name" => c["affiliation"] } if c["affiliation"].is_a?(String)
c
end
new_contributors = Array.wrap(contributors).map do |c|
new_contributors = Array.wrap(doi.contributors).map do |c|
c["affiliation"] = { "name" => c["affiliation"] } if c["affiliation"].is_a?(String)
c
end
Expand Down

0 comments on commit 04f4c1b

Please sign in to comment.