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