Commit 6b90259d by Oleksandr Barabash

flow id fixed

parent a2f91220
......@@ -10,5 +10,5 @@ from entities.json.camel_case_mixin import CamelCaseMixin
class Flow(CamelCaseMixin):
""" Notification Dataclass """
tenant_id: str
cmd: str
id: str
url: str
......@@ -400,7 +400,7 @@ class CosmosClient:
""" Create Flow """
from config import AppConfig
container = await self.get_flow_container()
flow = Flow(tenant_id=tenant_id or AppConfig.TENANT_ID, cmd=cmd,
flow = Flow(tenant_id=tenant_id or AppConfig.TENANT_ID, id=cmd,
url=url)
data = Flow.get_schema().dump(flow)
return await self.create_item(container, body=data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment