customer declared already in upper scope
This commit is contained in:
parent
831e64317b
commit
e27b55ea6f
|
@ -38,9 +38,9 @@ export default Ember.Controller.extend({
|
||||||
} else {
|
} else {
|
||||||
const customer = Customer.create({ source: result.token.id });
|
const customer = Customer.create({ source: result.token.id });
|
||||||
|
|
||||||
customer.save().then(customer => {
|
customer.save().then(c => {
|
||||||
const subscription = Subscription.create({
|
const subscription = Subscription.create({
|
||||||
customer: customer.id,
|
customer: c.id,
|
||||||
plan: plan.get("id")
|
plan: plan.get("id")
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue