Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferril committed Jan 13, 2025
1 parent 4e58a4a commit 9776236
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions engine/apps/api/serializers/alert_receive_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,7 @@ def to_representation(self, instance: AlertReceiveChannel) -> IntegrationAlertGr
"template": instance.alert_group_labels_template,
}

def to_internal_value(
self,
validated_data: dict,
) -> "AlertReceiveChannel.DynamicLabelsEntryDB":
def to_internal_value(self, validated_data: dict) -> dict:
"""
to_internal_value converts dynamic labels from API format to internal format and updates labels cache
"""
Expand Down

0 comments on commit 9776236

Please sign in to comment.