FIx insight_logs for mobile app backend (#1498)

This commit is contained in:
Innokentii Konstantinov 2023-03-08 21:38:59 +08:00 committed by GitHub
parent 0f23a449c7
commit 747a2b2bc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -179,6 +179,7 @@ class ChannelFilter(OrderedModel):
@property
def insight_logs_serialized(self):
result = {
"filtering_term_type": self.get_filtering_term_type_display(),
"filtering_term": self.str_for_clients,
"order": self.order,
"slack_notification_enabled": self.notify_in_slack,

View file

@ -25,6 +25,7 @@ class ChatOpsType(enum.Enum):
SLACK = "SLACK"
MSTEAMS = "MSTEAMS"
TELEGRAM = "TELEGRAM"
MOBILE_APP = "MOBILE_APP"
def write_chatops_insight_log(author, event_name: ChatOpsEvent, chatops_type: ChatOpsType, **kwargs):