massive redesign of user model and the way it interacts with bonfires, successfully returning next bonfire for the user, showing meet bonfire to unauthenticated users

This commit is contained in:
Nathan Leniz
2015-01-27 01:22:02 -05:00
parent 2e5dd6ea73
commit 227c938445
5 changed files with 77 additions and 134 deletions

View File

@@ -353,81 +353,12 @@ var userSchema = new mongoose.Schema({
},
resetPasswordToken: String,
resetPasswordExpires: Date,
bonfiresHash: {
ab6137d4e35944e21037b769: {
hash: String,
completedWith: String,
completedDate: {
type: Number,
default: 0
},
solution: String
},
a3566b1109230028080c9345: {
hash: String,
completedWith: String,
completedDate: {
type: Number,
default: 0
},
solution: String
},
a26cbbe9ad8655a977e1ceb5: {
hash: String,
completedWith: String,
completedDate: {
type: Number,
default: 0
},
solution: String
},
a302f7aae1aa3152a5b413bc: {
hash: String,
completedWith: String,
completedDate: {
type: Number,
default: 0
},
solution: String
},
a202eed8fc186c8434cb6d61: {
hash: String,
completedWith: String,
completedDate: {
type: Number,
default: 0
},
solution: String
},
aff0395860f5d3034dc0bfc9: {
hash: String,
completedWith: String,
completedDate: {
type: Number,
default: 0
},
solution: String
},
aaa48de84e1ecc7c742e1124: {
hash: String,
completedWith: String,
completedDate: {
type: Number,
default: 0
},
solution: String
},
ad7123c8c441eddfaeb5bdef: {
hash: String,
completedWith: String,
completedDate: {
type: Number,
default: 0
},
solution: String
}
},
bonfires: Array
uncompletedBonfires: Array,
completedBonfires: Array,
lastContentSync: {
type: Number,
default: 0
}
});
/**