- 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

@@ -6,7 +6,7 @@ mongoose.level = "F";
mongoose.set('debug', false);
const { ObjectID } = require('mongodb');
const { ObjectId } = require('mongodb');
const _ = require('lodash');
@@ -412,7 +412,7 @@ module.exports.createFirstUserAdmin = async function () {
const utenteadmin = { idapp: '13', username: telegrambot.ADMIN_USER_SERVER };
const newuser = new User(utenteadmin);
newuser._id = new ObjectID();
newuser._id = new ObjectId();
newuser.idapp = mysite.idapp;
newuser.profile.mygroups = [];
newuser.profile.mycircuits = [];