This commit is contained in:
Paolo Arena
2021-02-18 12:19:35 +01:00
parent 88ae9af12c
commit 14a3292da2
22 changed files with 233 additions and 122 deletions

View File

@@ -62,6 +62,7 @@ var TodoSchema = new mongoose.Schema({
},
phase: {
type: Number,
default: 1
},
assignedToUsers: [
{ type: String }
@@ -127,7 +128,7 @@ TodoSchema.statics.findByUserIdAndIdParent = function (userId, category, phase =
function getQueryFilterTodo(userId) {
let myobj = [
{ userId: userId },
// { userId: userId },
{
$or:
[{ deleted: { $exists: false } }, { deleted: { $exists: true, $eq: false } }]