Skip to content

Commit

Permalink
MessageId is an element of entity, not metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
tblanarik committed Sep 23, 2024
1 parent d08092a commit 4b06a77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion function_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def spotbot(req: func.HttpRequest) -> func.HttpResponse:
entity = query_for_entity(table, callsign)
messageId = None
if is_entity_recent(entity):
messageId = entity.metadata['MessageId']
messageId = entity['MessageId']
response = call_target(content, messageId)
messageId = extract_message_id(response)
upsert_entity(table, callsign, messageId)
Expand Down

0 comments on commit 4b06a77

Please sign in to comment.