- 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

@@ -24,7 +24,7 @@ const { Circuit } = require('../models/circuit');
const { Account } = require('../models/account');
const { Movement } = require('../models/movement');
const { ObjectID } = require('mongodb');
const { ObjectId } = require('mongodb');
const i18n = require('i18n');
@@ -6199,7 +6199,7 @@ UserSchema.statics.addNewSite = async function (idappPass, body) {
// Nessun Sito Installato e Nessun Utente installato !
let myuser = new User();
myuser._id = new ObjectID();
myuser._id = new ObjectId();
myuser.idapp = idapp;
myuser.email = body.email;
myuser.username = body.username;