InnerI commited on
Commit
7204a35
·
verified ·
1 Parent(s): 372d96e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -745,9 +745,9 @@ async def stripe_webhook(request: Request):
745
 
746
  conn.commit()
747
 
748
- elif etype in ("customer.subscription.created", "subscription.updated"):
749
- customer = data.get("customer")
750
- status = data.get("status", "unknown")
751
  if customer:
752
  # If subscription active/trialing -> keep enterprise if already, else pro. If not active -> free.
753
  if status in ("active", "trialing"):
 
745
 
746
  conn.commit()
747
 
748
+ elif etype in ("customer.subscription.created", "subscription.updated"):
749
+ customer = data.get("customer")
750
+ status = data.get("status", "unknown")
751
  if customer:
752
  # If subscription active/trialing -> keep enterprise if already, else pro. If not active -> free.
753
  if status in ("active", "trialing"):