- 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

@@ -12,7 +12,7 @@ const { SendMsg } = require('../models/sendmsg');
const { SendNotif } = require('../models/sendnotif');
const { ObjectID } = require('mongodb');
const { ObjectId } = require('mongodb');
const sendemail = require('../sendemail');
@@ -40,7 +40,7 @@ router.post('/', authenticate, (req, res) => {
// console.log('fieldtochange', fieldtochange);
myrecmsg._id = new ObjectID();
myrecmsg._id = new ObjectId();
return myrecmsg.save()
.then((writeresult) => {
let idobj = writeresult._id;