customer declared already in upper scope

This commit is contained in:
Rimian Perkins 2019-12-12 13:45:16 +11:00
parent 831e64317b
commit e27b55ea6f
1 changed files with 2 additions and 2 deletions

View File

@ -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")
});