- 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

@@ -17,7 +17,7 @@ const { Settings } = require('../models/settings');
const _ = require('lodash');
const { ObjectID } = require('mongodb');
const { ObjectId } = require('mongodb');
router.get('/', (req, res) => {
@@ -39,7 +39,7 @@ router.get('/', (req, res) => {
};
const myrec = new Todo(todo);
myrec._id = new ObjectID();
myrec._id = new ObjectId();
const TodoOne = myrec.save().then((ris, err) => {
console.log('Err:', err);
@@ -49,7 +49,7 @@ router.get('/', (req, res) => {
const newrec = new Settings({ key: 'chiave1' });
newrec._id = new ObjectID();
newrec._id = new ObjectId();
newrec.idapp = '8';
newrec.save((err, rec) => {