Table MySkills
This commit is contained in:
@@ -63,6 +63,7 @@ mongoose.set('debug', process.env.DEBUG);
|
||||
const cfgserver = mongoose.model('cfgserver');
|
||||
const { ObjectID } = require('mongodb');
|
||||
|
||||
|
||||
myLoad().then(ris => {
|
||||
|
||||
const { User } = require('./models/user');
|
||||
@@ -228,6 +229,8 @@ async function mystart() {
|
||||
|
||||
testmsgwebpush();
|
||||
|
||||
faitest();
|
||||
|
||||
// tools.sendNotifToAdmin('Riparti', 'Riparti');
|
||||
// sendemail.testemail('2', 'it');
|
||||
|
||||
@@ -406,4 +409,21 @@ async function inizia() {
|
||||
// console.log(link2);
|
||||
// }
|
||||
|
||||
async function faitest() {
|
||||
console.log('Fai Test:')
|
||||
|
||||
const testfind = false;
|
||||
|
||||
if (testfind) {
|
||||
const {City} = require('./models/city');
|
||||
|
||||
let miacity = 'roma';
|
||||
const ris = await City.findByCity(miacity);
|
||||
|
||||
console.log('ris', ris);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = { app };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user