Skip to content

Commit

Permalink
Fix createdBy return in organization update
Browse files Browse the repository at this point in the history
  • Loading branch information
aloftus23 committed Dec 5, 2024
1 parent 6338cd4 commit e7deb34
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions backend/src/xfd_django/xfd_api/api_methods/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,9 @@ def upsert_organization(organization_data, current_user):
"firstName": organization.createdBy.firstName,
"lastName": organization.createdBy.lastName,
"email": organization.createdBy.email,
},
}
if organization.createdBy
else None,
"tags": [
{
"id": str(tag.id),
Expand Down Expand Up @@ -634,7 +636,9 @@ def update_organization(organization_id: str, organization_data, current_user):
"firstName": organization.createdBy.firstName,
"lastName": organization.createdBy.lastName,
"email": organization.createdBy.email,
},
}
if organization.createdBy
else None,
"tags": [
{
"id": str(tag.id),
Expand Down

0 comments on commit e7deb34

Please sign in to comment.