aggiornamento Indici

This commit is contained in:
Surya Paolo
2023-12-09 11:55:58 +01:00
parent 502ed32c42
commit 023ba26003
81 changed files with 293 additions and 21 deletions

View File

@@ -4721,7 +4721,7 @@ if (tools.INITDB_FIRSTIME) {
console.log(' createIndex User Index...');
UserSchema.index({ userId: 1 });
UserSchema.index({ 'idapp': 1 });
UserSchema.index({ idapp: 1 });
// UserSchema.index({ username: 'text', name: 'text', surname: 'text', email: 'text' });
@@ -5434,6 +5434,10 @@ UserSchema.statics.createNewSubRecord = async function (idapp, req) {
const User = mongoose.model('User', UserSchema);
User.createIndexes((err) => {
if (err) throw err;
});
class Hero {
constructor(name, level) {
this.name = name;