Skip to content

Commit

Permalink
set user on txn if org is personal
Browse files Browse the repository at this point in the history
works for now, until we introduce team members for all
  • Loading branch information
nikochiko committed Sep 2, 2024
1 parent 646523b commit d1f13b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions orgs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ def add_balance(
kwargs.setdefault("plan", org.subscription and org.subscription.plan)
return AppUserTransaction.objects.create(
org=org,
user=org.created_by if org.is_personal else None,
invoice_id=invoice_id,
amount=amount,
end_balance=org.balance,
Expand Down

0 comments on commit d1f13b0

Please sign in to comment.