Skip to content

Commit 4b06a77

Browse files
committed
MessageId is an element of entity, not metadata
1 parent d08092a commit 4b06a77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

function_app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def spotbot(req: func.HttpRequest) -> func.HttpResponse:
2929
entity = query_for_entity(table, callsign)
3030
messageId = None
3131
if is_entity_recent(entity):
32-
messageId = entity.metadata['MessageId']
32+
messageId = entity['MessageId']
3333
response = call_target(content, messageId)
3434
messageId = extract_message_id(response)
3535
upsert_entity(table, callsign, messageId)

0 commit comments

Comments
 (0)