Skip to content

Instantly share code, notes, and snippets.

@lefnire
Created October 11, 2014 17:33
Show Gist options
  • Save lefnire/c34c997c5f89d616c7ed to your computer and use it in GitHub Desktop.
Save lefnire/c34c997c5f89d616c7ed to your computer and use it in GitHub Desktop.
diff --git a/src/models/user.js b/src/models/user.js
index 367178a..16031b1 100644
--- a/src/models/user.js
+++ b/src/models/user.js
@@ -175,7 +175,9 @@ var UserSchema = new Schema({
// Then add quest pets
_.transform(shared.content.questPets, function(m,v,k){ m[k] = Number; }),
// Then add additional pets (backer, contributor)
- _.transform(shared.content.specialPets, function(m,v,k){ m[k] = Number; })
+ _.transform(shared.content.specialPets, function(m,v,k){
+ m[k] = k=='JackOLantern-Base' ? {type:Number, 'default':5} : Number;
+ })
),
currentPet: String, // Cactus-Desert
@lefnire
Copy link
Author

lefnire commented Oct 11, 2014

We'll want to:

  1. Make sure this works, even for existing users who reg'd after halloween before today
  2. Remember to revert on 11/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment