mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-05 03:51:26 +01:00
closes #6938
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user