Skip to content

Commit

Permalink
feat: save only email in stripe customer update
Browse files Browse the repository at this point in the history
  • Loading branch information
vncsna committed Jan 25, 2024
1 parent e6a2acf commit 51859a4
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 @@ -98,7 +98,7 @@ def update_customer(event: Event, **kwargs):
account = event.customer.subscriber
if account and account.email != event.data["object"]["email"]:
account.email = event.data["object"]["email"]
account.save()
account.save(update_fields=["email"])


@webhooks.handler("customer.subscription.updated")
Expand Down

0 comments on commit 51859a4

Please sign in to comment.