This commit is contained in:
barisusakli
2016-04-29 20:35:49 +03:00
parent cb1920d45a
commit 5e5e46e95f
9 changed files with 131 additions and 102 deletions

View File

@@ -349,7 +349,9 @@ var utils = require('../public/src/utils');
Groups.getLatestMemberPosts = function(groupName, max, uid, callback) {
async.waterfall([
async.apply(Groups.getMembers, groupName, 0, -1),
function(next) {
Groups.getMembers(groupName, 0, -1, next);
},
function(uids, next) {
if (!Array.isArray(uids) || !uids.length) {
return callback(null, []);