v1.18.x
Barış Soner Uşaklı 6 years ago
parent e6c4af7f6f
commit 18219bd5f3

@ -20,10 +20,7 @@ module.exports = function (Groups) {
function (_groupNames, next) {
groupNames = _groupNames[0];
var keys = groupNames.map(function (groupName) {
return 'group:' + groupName + ':member:pids';
});
const keys = groupNames.map(groupName => 'group:' + groupName + ':member:pids');
db.sortedSetsAdd(keys, postData.timestamp, postData.pid, next);
},
function (next) {

@ -232,6 +232,7 @@ module.exports = function (Groups) {
async.apply(db.rename, 'group:' + oldName + ':owners', 'group:' + newName + ':owners'),
async.apply(db.rename, 'group:' + oldName + ':pending', 'group:' + newName + ':pending'),
async.apply(db.rename, 'group:' + oldName + ':invited', 'group:' + newName + ':invited'),
async.apply(db.rename, 'group:' + oldName + ':member:pids', 'group:' + newName + ':member:pids'),
async.apply(renameGroupMember, 'groups:createtime', oldName, newName),
async.apply(renameGroupMember, 'groups:visible:createtime', oldName, newName),

Loading…
Cancel
Save