mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
breaking: remove deprecated socket.emit('admin.categories.update')
This commit is contained in:
@@ -27,6 +27,9 @@ categoriesAPI.create = async function (caller, data) {
|
||||
};
|
||||
|
||||
categoriesAPI.update = async function (caller, data) {
|
||||
if (!data) {
|
||||
throw new Error('[[error:invalid-data]]');
|
||||
}
|
||||
await categories.update(data);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user