|
|
@ -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);
|
|
|
|