Skip to content

Commit

Permalink
update delinquency of owner when updating plan
Browse files Browse the repository at this point in the history
  • Loading branch information
nora-codecov committed Sep 20, 2024
1 parent b0483d0 commit a6fdc8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions plan/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def update_plan(self, name, user_count: int | None) -> None:
self.current_org.plan = name
self.current_org.plan_user_count = user_count
self._plan_data = USER_PLAN_REPRESENTATIONS[self.current_org.plan]
self.current_org.delinquent = False
self.current_org.save()

def current_org(self) -> Owner:
Expand Down
2 changes: 1 addition & 1 deletion services/billing.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def catch_and_raise(*args, **kwargs):
try:
return method(*args, **kwargs)
except stripe.StripeError as e:
log.warning(e.user_message)
log.warning(f"StripeError raised: {e.user_message}")
raise

return catch_and_raise
Expand Down

0 comments on commit a6fdc8f

Please sign in to comment.