- 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

@@ -9,7 +9,7 @@ const { decode } = require('entities');
const i18n = require('i18n');
const { ObjectID } = require('mongodb');
const { ObjectId } = require('mongodb');
const { Settings } = require('./models/settings');
const { TemplEmail } = require('./models/templemail');
const { Discipline } = require('./models/discipline');
@@ -574,7 +574,7 @@ module.exports = {
email: mylocalsconf.emailto,
hash,
});
myperson._id = new ObjectID();
myperson._id = new ObjectId();
} else {
myperson.name = mylocalsconf.name;
myperson.surname = mylocalsconf.surname;
@@ -937,7 +937,7 @@ module.exports = {
const updateml = await User.findOneAndUpdate({
idapp,
email: user.email,
}, { $set: { lastid_newstosent: ObjectID(id_newstosent) } }, { new: false });
}, { $set: { lastid_newstosent: ObjectId(id_newstosent) } }, { new: false });
//Delay for send email...
await tools.snooze(secpause);