mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
fuck, I am dumb.
This commit is contained in:
@@ -50,8 +50,8 @@ Upgrade.upgrade = function(callback) {
|
|||||||
|
|
||||||
async.each(tids, function(tid, next) {
|
async.each(tids, function(tid, next) {
|
||||||
Topics.getTopicField(tid, 'title', function(err, title) {
|
Topics.getTopicField(tid, 'title', function(err, title) {
|
||||||
newTitle = Utils.slugify(title);
|
newTitle = tid + '/' + Utils.slugify(title);
|
||||||
Topics.setTopicField(tid, 'title', newTitle, next);
|
Topics.setTopicField(tid, 'slug', newTitle, next);
|
||||||
});
|
});
|
||||||
}, function(err) {
|
}, function(err) {
|
||||||
next(err);
|
next(err);
|
||||||
|
|||||||
Reference in New Issue
Block a user