Doppia modalità di Registrazione con lista extra utenti

This commit is contained in:
Paolo Arena
2020-01-13 23:52:51 +01:00
parent 8f784df4fa
commit e23a3a792e
25 changed files with 829 additions and 163 deletions

View File

@@ -163,7 +163,7 @@ TodoSchema.statics.findAllByUserIdAndCat = function (userId) {
TodoSchema.statics.getArrIdParentInTable = function (userId) {
var Todo = this;
return Todo.find(getQueryFilterTodo(userId)).distinct("category")
return Todo.find(getQueryFilterTodo(userId)[0]).distinct("category")
.then(arrcategory => {
return arrcategory
})