mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
@@ -31,6 +31,9 @@ module.exports = function (Categories) {
|
|||||||
if (categoryData && categoryData.name) {
|
if (categoryData && categoryData.name) {
|
||||||
bulkRemove.push(['categories:name', `${categoryData.name.slice(0, 200).toLowerCase()}:${cid}`]);
|
bulkRemove.push(['categories:name', `${categoryData.name.slice(0, 200).toLowerCase()}:${cid}`]);
|
||||||
}
|
}
|
||||||
|
if (categoryData && categoryData.handle) {
|
||||||
|
bulkRemove.push(['categoryhandle:cid', categoryData.handle]);
|
||||||
|
}
|
||||||
await db.sortedSetRemoveBulk(bulkRemove);
|
await db.sortedSetRemoveBulk(bulkRemove);
|
||||||
|
|
||||||
await removeFromParent(cid);
|
await removeFromParent(cid);
|
||||||
|
|||||||
Reference in New Issue
Block a user