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:
@ -187,6 +187,12 @@ module.exports = {
|
||||
|
||||
numberOfBonfires: function() {
|
||||
return bonfires.length - 1;
|
||||
},
|
||||
|
||||
allBonfireIds: function() {
|
||||
return bonfires.map(function(elem) {
|
||||
return elem._id;
|
||||
})
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user