From e27b55ea6f44ed7a8089491062d8435ff6f21651 Mon Sep 17 00:00:00 2001 From: Rimian Perkins Date: Thu, 12 Dec 2019 13:45:16 +1100 Subject: [PATCH] customer declared already in upper scope --- .../javascripts/discourse/controllers/s-subscribe-show.js.es6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/javascripts/discourse/controllers/s-subscribe-show.js.es6 b/assets/javascripts/discourse/controllers/s-subscribe-show.js.es6 index be8233e..b69ca0f 100644 --- a/assets/javascripts/discourse/controllers/s-subscribe-show.js.es6 +++ b/assets/javascripts/discourse/controllers/s-subscribe-show.js.es6 @@ -38,9 +38,9 @@ export default Ember.Controller.extend({ } else { const customer = Customer.create({ source: result.token.id }); - customer.save().then(customer => { + customer.save().then(c => { const subscription = Subscription.create({ - customer: customer.id, + customer: c.id, plan: plan.get("id") });