Skip to content

Commit

Permalink
fix: turn customer into email
Browse files Browse the repository at this point in the history
  • Loading branch information
vncsna committed Jan 25, 2024
1 parent 51859a4 commit 13355dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bd_api/apps/payment/webhooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def subscribe(event: Event, **kwargs):
"""Add customer to allowed google groups"""
if event.data["object"]["status"] in ["trialing", "active"]:
if subscription := get_subscription(event):
add_user(event.customer.customer)
add_user(event.customer.email)
subscription.is_active = True
subscription.save()

Expand Down

0 comments on commit 13355dc

Please sign in to comment.