mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 18:56:15 +01:00
refactor: setObjectBulk to match sortedSetAddBulk
This commit is contained in:
@@ -121,8 +121,7 @@ module.exports = function (Categories) {
|
||||
);
|
||||
|
||||
await db.setObjectBulk(
|
||||
childrenCids.map(cid => `category:${cid}`),
|
||||
childrenCids.map((cid, index) => ({ order: index + 1 }))
|
||||
childrenCids.map((cid, index) => [`category:${cid}`, { order: index + 1 }])
|
||||
);
|
||||
|
||||
cache.del([
|
||||
|
||||
Reference in New Issue
Block a user