Skip to content

Commit

Permalink
fix: Remove from plan activated users when removing from org
Browse files Browse the repository at this point in the history
  • Loading branch information
suejung-sentry committed Jan 29, 2025
1 parent 5e92d54 commit 3b28bbb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/sync_teams.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ def run_impl(self, db_session, ownerid, *, username=None, **kwargs):
ownerid=ownerid,
),
)
for org in removed_orgs:
org.plan_activated_users.remove(ownerid)

owner.updatestamp = datetime.now()
owner.organizations = team_ids
Expand Down

0 comments on commit 3b28bbb

Please sign in to comment.