Skip to content

Instantly share code, notes, and snippets.

@lefnire
Created December 31, 2014 02:51
Show Gist options
  • Save lefnire/a0a93c52211f44a2c087 to your computer and use it in GitHub Desktop.
Save lefnire/a0a93c52211f44a2c087 to your computer and use it in GitHub Desktop.
diff --git a/migrations/mysteryitems.js b/migrations/mysteryitems.js
index 4743757..be8c3b2 100644
--- a/migrations/mysteryitems.js
+++ b/migrations/mysteryitems.js
@@ -1,6 +1,6 @@
var _id = '';
var update = {
- $push: {
+ $addToSet: {
'purchased.plan.mysteryItems':{
$each:['head_mystery_201412','armor_mystery_201412']
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment