mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +01:00
chore: eslint prefer-destructuring
This commit is contained in:
committed by
Julian Lam
parent
8d1462ffd8
commit
23f212a4c0
@@ -27,7 +27,7 @@ module.exports = function (Categories) {
|
||||
};
|
||||
|
||||
async function purgeCategory(categoryData) {
|
||||
const cid = categoryData.cid;
|
||||
const { cid } = categoryData;
|
||||
await db.sortedSetRemoveBulk([
|
||||
['categories:cid', cid],
|
||||
['categories:name', `${categoryData.name.substr(0, 200).toLowerCase()}:${cid}`],
|
||||
|
||||
Reference in New Issue
Block a user