Did the _.isMember stuff the right way

This commit is contained in:
Blade Barringer
2015-02-25 15:28:14 -06:00
parent a905f481e8
commit 1629ca037b
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -81,6 +81,7 @@ api.list = function(req, res, next) {
Group.find({privacy: 'public'})
.select(groupFields + ' members')
.sort(sort)
.lean()
.exec(function(err, groups){
if (err) return cb(err);
_.each(groups, function(g){
-1
View File
@@ -7,7 +7,6 @@ var logging = require('../logging');
var GroupSchema = new Schema({
_id: {type: String, 'default': shared.uuid},
_isMember: Boolean,
name: String,
description: String,
leader: {type: String, ref: 'User'},