Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update filer to publish generic events in format that pay understands #2762

Merged
merged 1 commit into from
Jun 17, 2024
Merged
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
4 changes: 3 additions & 1 deletion queue_services/entity-filer/src/entity_filer/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ async def publish_event(business: Business, filing: Filing):
}
if filing.temp_reg:
payload['tempidentifier'] = filing.temp_reg

subject = APP_CONFIG.ENTITY_EVENT_PUBLISH_OPTIONS['subject']
await qsm.service.publish(subject, payload)
except Exception as err: # pylint: disable=broad-except; we don't want to fail out the filing, so ignore all.
Expand All @@ -145,7 +146,8 @@ def publish_gcp_queue_event(business: Business, filing: Filing):
},
'business': {'identifier': business.identifier},
'legalFilings': get_filing_types(filing.filing_json)
}
},
'identifier': business.identifier
}
if filing.temp_reg:
data['tempidentifier'] = filing.temp_reg
Expand Down
Loading