Skip to content

Commit 3fdceea

Browse files
authored
Merge pull request #2715 from DMPRoadmap/upgrade-patch
Removed duplicate call to .first in upgrade task for migrating users …
2 parents f136322 + d32d25e commit 3fdceea

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)