Pagina con i link dei Canali territoriali di RISO
Lista Tabelle "Aggiungi" da errore userId... Aggiunto "Servizi" e alcune sue sottocategorie Aggiunto anche la conversione della foto piccola alla Foto Profilo
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
const tools = require('../tools/general');
|
||||
const Path = require('path');
|
||||
|
||||
const mongoose = require('mongoose').set('debug', false)
|
||||
|
||||
const shared_consts = require('../tools/shared_nodejs');
|
||||
|
||||
const globalTables = require('../tools/globalTables');
|
||||
@@ -124,10 +126,13 @@ module.exports = {
|
||||
}
|
||||
|
||||
if (mytab) {
|
||||
console.log('Delete ', table);
|
||||
await mytab.deleteMany({});
|
||||
await mytab.collection.drop();
|
||||
// mongoose.connection.db.dropCollection(table, function(err) {
|
||||
console.log('Delete ', table);
|
||||
// await mytab.remove({});
|
||||
|
||||
await this.insertIntoDb_NoDuplicate(false, table, mytab, field);
|
||||
this.insertIntoDb_NoDuplicate(false, table, mytab, field);
|
||||
// });
|
||||
}
|
||||
return true;
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user