Skip to content

Commit

Permalink
fix typo in webhooks customer.created
Browse files Browse the repository at this point in the history
  • Loading branch information
yshmarov committed Mar 13, 2021
1 parent bcae4ea commit 6bb5a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/webhooks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def create

# Handle the event
case event.type
when 'customer.create'
when 'customer.created'
customer = event.data.object
@user = User.find_by(email: customer.email)
@user.update(stripe_customer_id: customer.id)
Expand Down

0 comments on commit 6bb5a61

Please sign in to comment.