This commit is contained in:
barisusakli
2015-06-09 17:47:02 -04:00
parent a6cfdc7508
commit 2880a77a9f
5 changed files with 43 additions and 0 deletions

View File

@@ -337,4 +337,11 @@ module.exports = function(Groups) {
}
db.isSetMember('group:' + groupName + ':pending', uid, callback);
};
Groups.getPending = function(groupName, callback) {
if (!groupName) {
return callback(null, []);
}
db.getSetMembers('group:' + groupName + ':pending', callback);
};
};