fix typo in stripe cancel

This commit is contained in:
Matteo Pagliazzi
2016-05-24 18:42:08 +02:00
parent 6c017b31fb
commit 9855f8c385

View File

@@ -154,7 +154,7 @@ api.subscribeCancel = {
let user = res.locals.user;
if (!user.purchased.plan.customerId) throw new NotAuthorized(res.t('missingSubscription'));
let customer = await stripe.customers.retrieve(user.purchased.plan.customeerId);
let customer = await stripe.customers.retrieve(user.purchased.plan.customerId);
await stripe.customers.del(user.purchased.plan.customerId);
await payments.cancelSubscription({
user,