- Cataloghi
- Import ed Export Pagine - ObjectID sostituita con ObjectId
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user