mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
closed #3068
This commit is contained in:
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
var async = require('async'),
|
var async = require('async'),
|
||||||
db = require('../database'),
|
db = require('../database'),
|
||||||
utils = require('../../public/src/utils');
|
utils = require('../../public/src/utils'),
|
||||||
|
plugins = require('../plugins');
|
||||||
|
|
||||||
module.exports = function(Categories) {
|
module.exports = function(Categories) {
|
||||||
|
|
||||||
@@ -16,12 +16,12 @@ module.exports = function(Categories) {
|
|||||||
return next(err);
|
return next(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
var category = modified[cid];
|
plugins.fireHook('filter:category.update', modified[cid], function(err, category) {
|
||||||
var fields = Object.keys(category);
|
var fields = Object.keys(category);
|
||||||
|
async.each(fields, function(key, next) {
|
||||||
async.each(fields, function(key, next) {
|
updateCategoryField(cid, key, category[key], next);
|
||||||
updateCategoryField(cid, key, category[key], next);
|
}, next);
|
||||||
}, next);
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user