Commit c72b1baf by Oleksandr Barabash

ttl changed to contentTTL cause it intersect with the cosmos built in params

parent 718a89a3
...@@ -25,7 +25,7 @@ class Notification(CamelCaseMixin): ...@@ -25,7 +25,7 @@ class Notification(CamelCaseMixin):
title: Optional[str] = field(default=None) title: Optional[str] = field(default=None)
url: Optional[NotificationUrl] = field(default_factory=NotificationUrl) url: Optional[NotificationUrl] = field(default_factory=NotificationUrl)
acknowledge: Optional[bool] = field(default=False) acknowledge: Optional[bool] = field(default=False)
ttl: Optional[TTLRecord] = field(default=None) contentTTL: Optional[TTLRecord] = field(default=None)
def to_db(self) -> "NotificationCosmos": def to_db(self) -> "NotificationCosmos":
""" Create NotificationCosmos """ """ Create NotificationCosmos """
...@@ -36,7 +36,7 @@ class Notification(CamelCaseMixin): ...@@ -36,7 +36,7 @@ class Notification(CamelCaseMixin):
title=self.title, title=self.title,
url=self.url, url=self.url,
acknowledge=self.acknowledge, acknowledge=self.acknowledge,
ttl=self.ttl) contentTTL=self.contentTTL)
# noinspection PyDataclass # noinspection PyDataclass
......
...@@ -13,4 +13,4 @@ class PAMessage(CamelCaseMixin): ...@@ -13,4 +13,4 @@ class PAMessage(CamelCaseMixin):
conversation_id: str conversation_id: str
tenant_id: str tenant_id: str
card: Optional[Any] = None card: Optional[Any] = None
ttl: Optional[TTLRecord] = None contentTTL: Optional[TTLRecord] = None
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