Skip to content

Commit d32d25e

Browse files
committed
Removed duplicate call to .first in upgrade task for migrating users to contributors
1 parent f136322 commit d32d25e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tasks/upgrade.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,7 @@ namespace :upgrade do
10761076

10771077
elsif owner.present?
10781078
contact, contact_id = to_contributor(plan, owner.name(false),
1079-
owner.email, nil, owner.identifier_for(orcid)&.first&.value, owner.org_id)
1079+
owner.email, nil, owner.identifier_for(orcid)&.value, owner.org_id)
10801080
end
10811081
# Add the DMP Data Contact
10821082
if contact.present?

0 commit comments

Comments
 (0)