feat(chat): dynamic list of tavern mods (see http://goo.gl/9XhIZ6)

This commit is contained in:
Tyler Renelle
2014-06-29 16:20:38 -06:00
parent 20c165263e
commit e5c002bcdb
3 changed files with 6 additions and 1 deletions
+4
View File
@@ -442,3 +442,7 @@ UserSchema.methods.unlink = function(options, cb) {
module.exports.schema = UserSchema;
module.exports.model = mongoose.model("User", UserSchema);
mongoose.model("User").find({'contributor.admin':true},function(err,mods){
module.exports.mods = _.map(mods,function(m){return ' '+ m.profile.name});
});