Skip to content

Commit

Permalink
Update filer to publish generic events in format that pay understands (
Browse files Browse the repository at this point in the history
  • Loading branch information
argush3 authored Jun 17, 2024
1 parent 45f224c commit 2312c38
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 2312c38

Please sign in to comment.