Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Dec 6, 2024
1 parent 8c92a51 commit 82ef525
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions posthog/api/hog_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,6 @@ def create(self, validated_data: dict, *args, **kwargs) -> HogFunction:
validated_data["created_by"] = request.user
hog_function = super().create(validated_data=validated_data)

if validated_data.get("type") in TYPES_WITH_JAVASCRIPT_SOURCE:
# Re-run the transpilation with the actual saved instance
hog_function.transpiled = get_transpiled_function(hog_function)
hog_function.save()

return hog_function

def update(self, instance: HogFunction, validated_data: dict, *args, **kwargs) -> HogFunction:
Expand Down

0 comments on commit 82ef525

Please sign in to comment.