mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 12:31:33 +01:00
closes #3130
This commit is contained in:
@@ -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);
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user