From 036e958bfea5ad507fbde7c38bb8e19034057e58 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 2 Feb 2016 20:26:21 +0200 Subject: [PATCH] fix typo that causes bug in gorup sorting --- src/groups/membership.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/groups/membership.js b/src/groups/membership.js index 0d40af19c1..535e46f358 100644 --- a/src/groups/membership.js +++ b/src/groups/membership.js @@ -16,7 +16,7 @@ module.exports = function(Groups) { var tasks = [ async.apply(db.sortedSetAdd, 'group:' + groupName + ':members', Date.now(), uid), async.apply(db.incrObjectField, 'group:' + groupName, 'memberCount'), - async.apply(db.sortedSetIncrBy, 'group:visible:memberCount', 1, groupName) + async.apply(db.sortedSetIncrBy, 'groups:visible:memberCount', 1, groupName) ]; async.waterfall([ @@ -181,7 +181,7 @@ module.exports = function(Groups) { var tasks = [ async.apply(db.sortedSetRemove, 'group:' + groupName + ':members', uid), - async.apply(db.sortedSetIncrBy, 'group:visible:memberCount', -1, groupName), + async.apply(db.sortedSetIncrBy, 'groups:visible:memberCount', -1, groupName), async.apply(db.setRemove, 'group:' + groupName + ':owners', uid), async.apply(db.decrObjectField, 'group:' + groupName, 'memberCount') ];