Skip to content

Commit

Permalink
fix API 500 err when name is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Samk13 committed Jun 7, 2023
1 parent 50091cc commit ae435fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions diva_invenio_data_exchanger/services/metadata/names.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def _build_person_or_org(first_name, last_name, identifiers, affiliations):
person_or_org = {
"given_name": first_name,
"family_name": last_name,
"name": f"{first_name} {last_name}",
"type": "personal", # TODO make this required field dynamic
}

Expand Down

0 comments on commit ae435fd

Please sign in to comment.