mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 19:56:23 +00:00
chore(subscribers): some busted transaction migration code
This commit is contained in:
parent
8d49a4d032
commit
b5bf54a815
1 changed files with 15 additions and 0 deletions
|
|
@ -7,6 +7,21 @@ var update = {
|
|||
}
|
||||
};
|
||||
|
||||
/*var update = {
|
||||
$set:{
|
||||
'purchased.plan':{
|
||||
customerId: "",
|
||||
dateCreated: new Date(),
|
||||
dateTerminated: null,
|
||||
dateUpdated:new Date(),
|
||||
gemsBought: 0,
|
||||
mysteryItems: [],
|
||||
paymentMethod: "Paypal",
|
||||
planId : "basic_earned"
|
||||
}
|
||||
}
|
||||
};*/
|
||||
|
||||
if (_id) {
|
||||
// singular (missing items)
|
||||
db.users.update({_id:_id}, update);
|
||||
|
|
|
|||
Loading…
Reference in a new issue