Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
timgl committed Sep 5, 2024
1 parent bf66822 commit d0aa06f
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions posthog/api/person.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,16 +703,17 @@ def _set_properties(self, properties, user):
},
)

log_activity(
organization_id=self.organization.id,
team_id=self.team.id,
user=user,
was_impersonated=is_impersonated_session(self.request),
item_id=instance.pk,
scope="Person",
activity="updated",
detail=Detail(changes=[Change(type="Person", action="changed", field="properties")]),
)
if self.organization.id: # should always be true, but mypy...
log_activity(
organization_id=self.organization.id,
team_id=self.team.id,
user=user,
was_impersonated=is_impersonated_session(self.request),
item_id=instance.pk,
scope="Person",
activity="updated",
detail=Detail(changes=[Change(type="Person", action="changed", field="properties")]),
)

# PRAGMA: Methods for getting Persons via clickhouse queries
def _respond_with_cached_results(
Expand Down

0 comments on commit d0aa06f

Please sign in to comment.