Files
habitica/migrations/20150107_plan_dateUpdated_null.js
Tyler Renelle 0b28f6df55 fix(plans): when gifting subscription, set plan.dateUpdated so it can
roll gemCapExtra next month. Fixes #4480
2015-01-07 14:59:38 -07:00

5 lines
180 B
JavaScript

db.users.update(
{'purchased.plan.customerId':{$ne:null}, 'purchased.plan.dateUpdated':null},
{$set: {'purchased.plan.datedUpdated': new Date('12/01/2014')}},
{multi:true}
);