Skip to content

Commit

Permalink
20119 fix alternate name json issues when business start date is null (
Browse files Browse the repository at this point in the history
  • Loading branch information
argush3 authored Mar 15, 2024
1 parent ff65a02 commit 702231a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion legal-api/src/legal_api/models/alternate_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,9 @@ def _slim_json(self):
"identifier": self.identifier,
"name": self.name,
"nameRegisteredDate": self.start_date.isoformat(),
"nameStartDate": LegislationDatetime.format_as_legislation_date(self.business_start_date),
"nameStartDate": LegislationDatetime.format_as_legislation_date(self.business_start_date)
if self.business_start_date
else None,
"nameType": self.name_type.name,
"operatingName": self.name, # will be removed in the future
}
Expand Down

0 comments on commit 702231a

Please sign in to comment.