mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 03:01:08 +01:00
Delete errors
This commit is contained in:
@@ -23,7 +23,7 @@ module.exports = function(Categories) {
|
||||
description: ( data.description ? data.description : '' ),
|
||||
icon: ( data.icon ? data.icon : '' ),
|
||||
bgColor: data.bgColor || colours[0],
|
||||
color: ( data.color ? data.color : '' ),
|
||||
color: data.color || colours[1],
|
||||
slug: slug,
|
||||
parentCid: ( data.parentCid ? data.parentCid : 0 ),
|
||||
topic_count: 0,
|
||||
|
||||
@@ -136,7 +136,7 @@ adminController.categories.get = function(req, res, next) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
plugins.fireHook('filter:admin.categories.get', {req: req, res: res, category: data.category[0], privileges: data.privileges}, function(err, data) {
|
||||
plugins.fireHook('filter:admin.category.get', {req: req, res: res, category: data.category[0], privileges: data.privileges}, function(err, data) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
@@ -158,7 +158,7 @@ adminController.categories.getAll = function(req, res, next) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
plugins.fireHook('filter:admin.categories.getAll', {req: req, res: res, categories: categoryData}, function(err, data) {
|
||||
plugins.fireHook('filter:admin.categories.get', {req: req, res: res, categories: categoryData}, function(err, data) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user