Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyorlando committed Nov 29, 2024
1 parent af81f7e commit c3c0769
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions engine/apps/alerts/models/alert_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -2014,6 +2014,8 @@ def is_presented_in_slack(self):

@property
def slack_channel_id(self) -> str | None:
channel_filter = self.channel_filter

if not self.channel.organization.slack_team_identity:
return None
elif self.slack_message:
Expand All @@ -2022,8 +2024,8 @@ def slack_channel_id(self) -> str | None:
#
# return self.slack_message.channel.slack_id
return self.slack_message._channel_id
elif self.channel_filter and self.channel_filter.slack_channel_or_org_default:
return self.channel_filter.slack_channel_or_org_default.slack_id
elif channel_filter and channel_filter.slack_channel_or_org_default:
return channel_filter.slack_channel_or_org_default.slack_id
return None

@property
Expand Down

0 comments on commit c3c0769

Please sign in to comment.