Skip to content

Commit

Permalink
add comment for tombstone business revision issue
Browse files Browse the repository at this point in the history
Signed-off-by: Hongjing Chen <[email protected]>
  • Loading branch information
chenhongjing committed Dec 3, 2024
1 parent b71ff00 commit 43ef8dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions legal-api/src/legal_api/services/business_details_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,8 @@ def resolution_json(resolution_revision) -> dict:
@staticmethod
def business_revision_json(business_revision, business_json):
"""Return the business revision as a json object."""
# business_revision for tombstone business will be None
# check and skip to return original business_json
if not business_revision:
return business_json
business_json['hasRestrictions'] = business_revision.restriction_ind
Expand Down

0 comments on commit 43ef8dc

Please sign in to comment.