Corretto Duplicazione Sito (es: da 1 a 14)
This commit is contained in:
@@ -15,7 +15,7 @@ const {ObjectID} = require('mongodb');
|
||||
const {Graduatoria} = require('../models/graduatoria');
|
||||
|
||||
const mongoose = require('mongoose').set('debug', false);
|
||||
const cfgserver = mongoose.model('cfgserver');
|
||||
const {CfgServer} = require('../models/cfgserver');
|
||||
|
||||
// const uuidv4 = require('uuid/v4'); // I chose v4 ‒ you can select others
|
||||
|
||||
@@ -1236,7 +1236,7 @@ router.get(process.env.LINK_CHECK_UPDATES, authenticate, async (req, res) => {
|
||||
return res.status(404).send();
|
||||
}
|
||||
|
||||
await cfgserver.find({idapp}).then((arrcfgrec) => {
|
||||
await CfgServer.find({idapp}).then((arrcfgrec) => {
|
||||
|
||||
if (!arrcfgrec)
|
||||
return res.status(404).send();
|
||||
@@ -1265,7 +1265,7 @@ router.get(process.env.LINK_CHECK_UPDATES, authenticate, async (req, res) => {
|
||||
return Promise.all([usersList, last_msgs]).then((arrdata) => {
|
||||
// console.table(arrdata);
|
||||
return res.send({
|
||||
cfgServer: arrcfgrec,
|
||||
CfgServer: arrcfgrec,
|
||||
usersList: arrdata[0],
|
||||
last_msgs: arrdata[1],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user