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

@@ -10,8 +10,6 @@ require('../models/subscribers');
const printf = require('util').format;
const Site = require('../models/site');
const CryptoJS = require('crypto-js');
const Url = require('url-parse');
@@ -21,7 +19,7 @@ const { ObjectID, ObjectId } = require('mongodb');
const shared_consts = require('./shared_nodejs');
const mongoose = require('mongoose').set('debug', false);
const Subscription = mongoose.model('subscribers');
const Subscription = require('../models/subscribers');
const server_constants = require('./server_constants');
@@ -2952,14 +2950,14 @@ module.exports = {
startTimeLog(name) {
if (this.testing()) {
console.log('inizio', name);
// console.log('inizio', name);
console.time(name);
}
},
endTimeLog(name) {
if (this.testing()) {
console.log(' ... fine', name);
// console.log(' ... fine', name);
console.timeEnd(name);
}
},
@@ -3920,6 +3918,8 @@ module.exports = {
},
async loadApps() {
const Site = require('../models/site');
try {
this.MYAPPS = await Site.findAll(0);
// console.log('this.MYAPPS', this.MYAPPS);
@@ -3927,6 +3927,7 @@ module.exports = {
console.error('loadApps', e);
}
},
async getApps() {
if (this.MYAPPS.length <= 0)
await this.loadApps();