mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 05:37:22 +01:00
fix(plans): when gifting subscription, set plan.dateUpdated so it can
roll gemCapExtra next month. Fixes #4480
This commit is contained in:
5
migrations/20150107_plan_dateUpdated_null.js
Normal file
5
migrations/20150107_plan_dateUpdated_null.js
Normal file
@@ -0,0 +1,5 @@
|
||||
db.users.update(
|
||||
{'purchased.plan.customerId':{$ne:null}, 'purchased.plan.dateUpdated':null},
|
||||
{$set: {'purchased.plan.datedUpdated': new Date('12/01/2014')}},
|
||||
{multi:true}
|
||||
);
|
||||
Reference in New Issue
Block a user