Skip to content

Commit

Permalink
key error
Browse files Browse the repository at this point in the history
  • Loading branch information
ramibch committed Jan 1, 2024
1 parent 141b0e4 commit 7b47713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def process_stripe_event(sender, instance, created, **kwargs):

plan_id = int(instance.data["object"]["metadata"]["plan_id"])
user_id = int(instance.data["object"]["metadata"]["user_id"])
customer_id = int(instance.data["object"]["metadata"]["customer_key"])
customer_id = int(instance.data["object"]["metadata"][customer_key])

try:
user = User.objects.get(id=user_id)
Expand Down

0 comments on commit 7b47713

Please sign in to comment.