mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
fix typo in stripe cancel
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user