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

@@ -33,6 +33,9 @@ module.exports = function (redisClient, module) {
module.sortedSetsAdd = function (keys, score, value, callback) {
callback = callback || function () {};
if (!Array.isArray(keys) || !keys.length) {
return callback();
}
var multi = redisClient.multi();
for (var i = 0; i < keys.length; i += 1) {