fix
This commit is contained in:
@@ -101,8 +101,8 @@ class CategorySyncer extends EventEmitter {
|
||||
// This gives us the subtree we're interested in
|
||||
let tree = this._buildTree(categories, names, articleCounts, images, true);
|
||||
|
||||
// Keep unpruned tree for image sync (same subtree, but not pruned)
|
||||
const unprunedTree = tree;
|
||||
// Deep copy tree for unpruned version (before pruning modifies it)
|
||||
const unprunedTree = JSON.parse(JSON.stringify(tree));
|
||||
|
||||
// Ensure directory exists
|
||||
await fs.mkdir(this.cacheDir, { recursive: true });
|
||||
|
||||
Reference in New Issue
Block a user