mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-07-08 15:22:46 +00:00
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…
x
Reference in New Issue
Block a user