mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-20 20:58:51 +00:00
fix(plans): when gifting subscription, set plan.dateUpdated so it can roll gemCapExtra next month. Fixes #4480. Removes datedUpdated from previous version of fix.
This commit is contained in:
parent
f71737a84c
commit
6a5210d3ad
1 changed files with 5 additions and 2 deletions
|
|
@ -1,5 +1,8 @@
|
|||
db.users.update(
|
||||
{'purchased.plan.customerId':{$ne:null}, 'purchased.plan.dateUpdated':null},
|
||||
{$set: {'purchased.plan.datedUpdated': new Date('12/01/2014')}},
|
||||
{
|
||||
$set: {'purchased.plan.dateUpdated': new Date('12/01/2014')},
|
||||
$unset: {'purchased.plan.datedUpdated':''}
|
||||
},
|
||||
{multi:true}
|
||||
);
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue