Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Jan 2, 2025
1 parent 11d4786 commit ad5b2a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions posthog/api/hog_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ def validate_input_and_filters(attrs: dict):
validate_input_and_filters(attrs)

if attrs.get("mappings", None) is not None:
if hog_type != "site_destination":
raise serializers.ValidationError({"mappings": "Mappings are only allowed for site destinations."})
if hog_type not in ["site_destination", "destination"]:
raise serializers.ValidationError({"mappings": "Mappings are only allowed for destinations."})
for mapping in attrs["mappings"]:
validate_input_and_filters(mapping)

Expand Down

0 comments on commit ad5b2a6

Please sign in to comment.