Progetti
This commit is contained in:
@@ -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 } }]
|
||||
|
||||
Reference in New Issue
Block a user