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 committed Jun 17, 2024
1 parent 45f224c commit 51cd0ac
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 @@ -122,11 +122,13 @@ async def publish_event(business: Business, filing: Filing):
},
'business': {'identifier': business.identifier},
'legalFilings': get_filing_types(filing.filing_json)
}
},
'identifier': business.identifier
}
}
if filing.temp_reg:
payload['tempidentifier'] = filing.temp_reg
payload['data']['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 Down

0 comments on commit 51cd0ac

Please sign in to comment.