change the way group member posts are stored

This commit is contained in:
Barış Soner Uşaklı
2017-05-04 16:32:51 -04:00
parent 670a5d9ca0
commit 14f3907aa4
6 changed files with 100 additions and 11 deletions

View File

@@ -26,6 +26,7 @@ module.exports = function (Groups) {
async.apply(db.delete, 'group:' + groupName + ':pending'),
async.apply(db.delete, 'group:' + groupName + ':invited'),
async.apply(db.delete, 'group:' + groupName + ':owners'),
async.apply(db.delete, 'group:' + groupName + ':member:pids'),
async.apply(db.deleteObjectField, 'groupslug:groupname', utils.slugify(groupName)),
function (next) {
db.getSortedSetRange('groups:createtime', 0, -1, function (err, groups) {