Did the _.isMember stuff the right way
This commit is contained in:
@@ -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){
|
||||
|
||||
@@ -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'},
|
||||
|
||||
Reference in New Issue
Block a user