- Cataloghi

- Import ed Export Pagine
- ObjectID sostituita con ObjectId
This commit is contained in:
Surya Paolo
2024-12-17 17:55:47 +01:00
parent 14b3e18986
commit 300bab2125
91 changed files with 404 additions and 272 deletions

View File

@@ -2,7 +2,7 @@ var mongoose = require('mongoose').set('debug', false)
const _ = require('lodash');
const { ObjectID } = require('mongodb');
const { ObjectId } = require('mongodb');
const tools = require('../tools/general');
var { Project } = require('./project');
@@ -108,7 +108,7 @@ TodoSchema.statics.findByUserIdAndIdParent = function (userId, category, phase =
var Todo = this;
let tofind = {
category: ObjectID(category),
category: ObjectId(category),
$or:
[{ deleted: { $exists: false } }, { deleted: { $exists: true, $eq: false } }]