mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
add a missing variable declaration
This commit is contained in:
@@ -41,6 +41,8 @@ function grantEndOfTheMonthPerks (user, now) {
|
|||||||
|
|
||||||
function removeTerminatedSubscription (user) {
|
function removeTerminatedSubscription (user) {
|
||||||
// If subscription's termination date has arrived
|
// If subscription's termination date has arrived
|
||||||
|
let plan = user.purchased.plan;
|
||||||
|
|
||||||
if (plan.dateTerminated && moment(plan.dateTerminated).isBefore(new Date())) {
|
if (plan.dateTerminated && moment(plan.dateTerminated).isBefore(new Date())) {
|
||||||
_.merge(plan, {
|
_.merge(plan, {
|
||||||
planId: null,
|
planId: null,
|
||||||
|
|||||||
Reference in New Issue
Block a user