breaking: remove deprecated socket.emit('admin.categories.update')

This commit is contained in:
Barış Soner Uşaklı
2021-12-06 20:34:33 -05:00
parent ba5d2e7b81
commit 0b9c01f9a0
4 changed files with 44 additions and 56 deletions

View File

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