Skip to content

Commit

Permalink
Fixed in response to Argus' comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JazzarKarim committed Nov 27, 2023
1 parent 8eb1339 commit 9eaa7a1
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,7 @@ def get_message_context_properties(queue_msg: nats.aio.client.Msg):
message_id = f'{etype}_{option}_{ar_year}_{business_id}'
return create_message_context_properties(etype, message_id, None, None, False)

if etype == 'agmLocationChange' \
and (option := email.get('option', None)) \
and option == 'COMPLETED' \
and (filing_id := email.get('filingId', None)):
# option contains current status of filing - COMPLETED
message_id = f'{etype}_{option}_{filing_id}'
return create_message_context_properties(etype, message_id, None, None, False)

if etype == 'agmExtension' \
if etype in ('agmLocationChange', 'agmExtension') \
and (option := email.get('option', None)) \
and option == 'COMPLETED' \
and (filing_id := email.get('filingId', None)):
Expand Down

0 comments on commit 9eaa7a1

Please sign in to comment.