fix: remove handle on category purge

closes #13171
This commit is contained in:
Barış Soner Uşaklı
2025-02-17 14:26:49 -05:00
parent f034ed53fd
commit adb430f27e

View File

@@ -31,6 +31,9 @@ module.exports = function (Categories) {
if (categoryData && categoryData.name) {
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 removeFromParent(cid);