Update API to use proper query (#44)

Looks like you changed the query handler in the Workflow but didn't update the API. Minor patch.
This commit is contained in:
Mason Egger
2025-06-16 12:28:05 -05:00
committed by GitHub
parent 861e55a8d0
commit c2785b79f4

View File

@@ -65,7 +65,7 @@ async def get_tool_data():
return {} return {}
# Query the workflow # Query the workflow
tool_data = await handle.query("get_tool_data") tool_data = await handle.query("get_latest_tool_data")
return tool_data return tool_data
except TemporalError as e: except TemporalError as e:
# Workflow not found; return an empty response # Workflow not found; return an empty response