From b5efa4ae4c576de35bbcd184beefc0b4b6e2c856 Mon Sep 17 00:00:00 2001 From: kylestratis Date: Wed, 11 Nov 2015 21:25:22 -0500 Subject: [PATCH] Additional formatting --- migrations/mystery_items.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/migrations/mystery_items.js b/migrations/mystery_items.js index 3c9cf93661..ad324e378d 100644 --- a/migrations/mystery_items.js +++ b/migrations/mystery_items.js @@ -1,8 +1,8 @@ var _id = ''; var update = { $addToSet: { - 'purchased.plan.mysteryItems':{ - $each:['head_mystery_201509','armor_mystery_201509'] + 'purchased.plan.mysteryItems': { + $each: ['head_mystery_201509', 'armor_mystery_201509'] } } }; @@ -24,17 +24,17 @@ var update = { if (_id) { // singular (missing items) - db.users.update({_id:_id}, update); + db.users.update({_id: _id}, update); } else { // multiple (once @ start of event) db.users.update([ {$and: [ - { 'purchased.plan.customerId': { $ne:null } }, + { 'purchased.plan.customerId': { $ne: null } }, {$or: [ { 'purchased.plan.dateTerminated': { $gte: new Date() } }, - { 'purchased.plan.dateTerminated': { $exists:false } }, - { 'purchased.plan.dateTerminated': { $eq:null } } + { 'purchased.plan.dateTerminated': { $exists: false } }, + { 'purchased.plan.dateTerminated': { $eq: null } } ]} ]} - ], update, { multi:true }); + ], update, { multi: true }); } \ No newline at end of file