Calculation recorsively up completed!

This commit is contained in:
Paolo Arena
2019-04-06 21:06:11 +02:00
parent 6310a7a971
commit d40297acb3

View File

@@ -255,7 +255,7 @@ TodoSchema.statics.calculateTreeTodo = async function (userId, idproj, calcalsoU
if (!!idparent) { if (!!idparent) {
// Calculate also the upper Projects ! // Calculate also the upper Projects !
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
Todo.calculateTreeTodo(userId, idparent, true, masterproj, true); Todo.calculateTreeTodo(userId, idparent, true, masterproj, false);
resolve(ris) resolve(ris)
}); });
} else { } else {