From b9ed79d638fa17aa86183131846ea1b69b6a9b25 Mon Sep 17 00:00:00 2001 From: ThaumRystra <9525416+ThaumRystra@users.noreply.github.com> Date: Mon, 18 Sep 2023 20:39:34 +0200 Subject: [PATCH] iterated --- app/imports/api/parenting/parentingFunctions.ts | 7 +------ app/tsconfig.json | 4 +--- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/app/imports/api/parenting/parentingFunctions.ts b/app/imports/api/parenting/parentingFunctions.ts index 34d8eb91..a5a97aa9 100644 --- a/app/imports/api/parenting/parentingFunctions.ts +++ b/app/imports/api/parenting/parentingFunctions.ts @@ -369,12 +369,7 @@ export async function rebuildNestedSets(collection: Mongo.Collection, r 'root.id': rootId, removed: { $ne: true } }, { - fields: { - root: 1, - parentId: 1, - left: 1, - right: 1, - }, + fields: treeDocFields, sort: { //Reverse sorting so that arrays can be used as stacks with the first item on top left: 1, diff --git a/app/tsconfig.json b/app/tsconfig.json index f2595a71..1ade8d6b 100644 --- a/app/tsconfig.json +++ b/app/tsconfig.json @@ -19,9 +19,7 @@ "meteor/aldeed:collection2": [ "packages/collection2/collection2.js" ] - }, - "checkJs": false, - "allowJs": true + } }, "vueCompilerOptions": { "target": 2 // For Vue version <= 2.6.14