habulaj commited on
Commit
d8e0746
·
verified ·
1 Parent(s): 48e31fe

Update routes/subscription.py

Browse files
Files changed (1) hide show
  1. routes/subscription.py +3 -0
routes/subscription.py CHANGED
@@ -390,6 +390,9 @@ def check_subscription(
390
  expand=["data.items"] # Expande os dados para pegar os itens e o metadata
391
  )
392
 
 
 
 
393
  if "data" not in subscriptions:
394
  raise HTTPException(status_code=500, detail="No subscriptions data found in response")
395
 
 
390
  expand=["data.items"] # Expande os dados para pegar os itens e o metadata
391
  )
392
 
393
+ # Logando a resposta do Stripe para verificar sua estrutura
394
+ logger.info(f"Stripe response data: {subscriptions}")
395
+
396
  if "data" not in subscriptions:
397
  raise HTTPException(status_code=500, detail="No subscriptions data found in response")
398