From 3bb3312831109706ab586b2b483ddde053520c07 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Wed, 15 Feb 2017 20:32:12 -0800 Subject: [PATCH] app/webhooks.rb: halt for nil customer --- app/webhooks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/webhooks.rb b/app/webhooks.rb index 88a70556..1bd1250a 100644 --- a/app/webhooks.rb +++ b/app/webhooks.rb @@ -107,7 +107,7 @@ end def stripe_get_site_from_event(event) customer_id = event['data']['object']['customer'] - return 'ok' if customer_id.nil? # Likely a fraudulent card report + halt 'ok' if customer_id.nil? # Likely a fraudulent card report customer = Stripe::Customer.retrieve customer_id # Some old accounts only have a username for the desc