mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 17:05:51 +01:00
closed #2625
This commit is contained in:
@@ -542,6 +542,15 @@ var async = require('async'),
|
|||||||
function(next) {
|
function(next) {
|
||||||
db.setObjectField('group:' + oldName, 'name', newName, next);
|
db.setObjectField('group:' + oldName, 'name', newName, next);
|
||||||
},
|
},
|
||||||
|
function(next) {
|
||||||
|
db.setObjectField('group:' + oldName, 'slug', utils.slugify(newName), next);
|
||||||
|
},
|
||||||
|
function(next) {
|
||||||
|
db.deleteObjectField('groupslug:groupname', group.slug, next);
|
||||||
|
},
|
||||||
|
function(next) {
|
||||||
|
db.setObjectField('groupslug:groupname', utils.slugify(newName), newName, next);
|
||||||
|
},
|
||||||
function(next) {
|
function(next) {
|
||||||
db.getSetMembers('groups', function(err, groups) {
|
db.getSetMembers('groups', function(err, groups) {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user