mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
app/webhooks.rb: halt for nil customer
This commit is contained in:
parent
ba628805bd
commit
3bb3312831
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue