|
|
@ -13,7 +13,6 @@ module.exports = function(Categories) {
|
|
|
|
function updateCategory(cid, next) {
|
|
|
|
function updateCategory(cid, next) {
|
|
|
|
var category = modified[cid];
|
|
|
|
var category = modified[cid];
|
|
|
|
var fields = Object.keys(category);
|
|
|
|
var fields = Object.keys(category);
|
|
|
|
console.log('updating', cid, 'fields:', fields);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async.each(fields, function(key, next) {
|
|
|
|
async.each(fields, function(key, next) {
|
|
|
|
updateCategoryField(cid, key, category[key], next);
|
|
|
|
updateCategoryField(cid, key, category[key], next);
|
|
|
|