From b5bf54a81523b27629ff290ac1cbc786fbd393a1 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Thu, 12 Jun 2014 12:32:20 -0600 Subject: [PATCH] chore(subscribers): some busted transaction migration code --- migrations/mysteryitems.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/migrations/mysteryitems.js b/migrations/mysteryitems.js index 4f7e4dd837..e191a3573e 100644 --- a/migrations/mysteryitems.js +++ b/migrations/mysteryitems.js @@ -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);