mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 19:56:23 +00:00
migration(plans): sample code for plans which didn't get applied
This commit is contained in:
parent
8bd116f2c5
commit
24a6b2f4cc
1 changed files with 22 additions and 1 deletions
|
|
@ -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
|
||||
// }
|
||||
// }}}
|
||||
// )
|
||||
Loading…
Reference in a new issue