This commit is contained in:
Barış Soner Uşaklı
2017-05-04 16:39:47 -04:00
parent 14f3907aa4
commit 17d0759672
3 changed files with 2 additions and 4 deletions

View File

@@ -7,7 +7,6 @@ var privileges = require('../privileges');
var posts = require('../posts');
module.exports = function (Groups) {
Groups.onNewPostMade = function (postData, callback) {
if (!parseInt(postData.uid, 10)) {
return setImmediate(callback);

View File

@@ -27,14 +27,14 @@ module.exports = function (Groups) {
Groups.getUserGroupMembership(set, uids, next);
},
function (memberOf, next) {
async.map(memberOf, function(memberOf, next) {
async.map(memberOf, function (memberOf, next) {
Groups.getGroupsData(memberOf, next);
}, next);
},
], callback);
};
Groups.getUserGroupMembership = function(set, uids, callback) {
Groups.getUserGroupMembership = function (set, uids, callback) {
async.waterfall([
function (next) {
db.getSortedSetRevRange(set, 0, -1, next);

View File

@@ -319,6 +319,5 @@ module.exports = function (Posts) {
db.sortedSetsRemove(keys, pid, next);
},
], callback);
}
};