Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ def submit_filing_for_review(business: Business | RegistrationBootstrap, filing:

# emailer notification
publish_to_queue(
data={"email": {"filingId": filing.id, "type": filing.filing_type, "option": review.status}},
data={"email": {"filingId": filing.id, "type": filing.filing_type, "option": review.status.name}},
subject=current_app.config.get("BUSINESS_EMAILER_TOPIC"),
identifier=business.identifier if business else None,
event_type=None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def process(email_info: dict, token: str) -> dict: # pylint: disable=too-many-l

# compute Foreign Jurisdiction string as in report.py and business_document.py
country_code = filing_data["foreignJurisdiction"]["country"]
region_code = filing_data["foreignJurisdiction"]["region"]
region_code = filing_data["foreignJurisdiction"].get("region")
country = pycountry.countries.get(alpha_2=country_code)
region = None
if region_code and region_code.upper() != "FEDERAL":
Expand Down
Loading