migration(plans): sample code for plans which didn't get applied

This commit is contained in:
Lisa Marie 2015-02-09 19:39:05 -07:00
parent 8bd116f2c5
commit 24a6b2f4cc

View file

@ -8,4 +8,25 @@ db.users.update(
'purchased.plan.planId':'basic_earned',
'purchased.plan.dateTerminated': moment().add('month',1).toDate()
}}
)
)
// db.users.update(
// {_id:''},
// {$set:{'purchased.plan':{
// planId: 'basic_3mo',
// paymentMethod: 'Paypal',
// customerId: 'Gift',
// dateCreated: new Date(),
// dateTerminated: moment().add('month',3).toDate()
// dateUpdated: new Date(),
// extraMonths: 0,
// gemsBought: 0,
// mysteryItems: [],
// consecutive: {
// count: 0,
// offset: 3,
// gemCapExtra: 15,
// trinkets: 1
// }
// }}}
// )