ver: 1.1.21:
- Lista dei Cataloghi - Gestione Cataloghi in base alla configurazione
This commit is contained in:
@@ -81,7 +81,7 @@ module.exports = {
|
||||
numupdated++;
|
||||
}
|
||||
} catch (e) {
|
||||
console.log('Error processing record:', e);
|
||||
console.log('Error processing record: ', tablename, e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -178,7 +178,12 @@ module.exports = {
|
||||
if (rec.table === 'contribtypes') {
|
||||
attiva = scrivi_contribtype;
|
||||
}
|
||||
await this.insertIntoDb_NoDuplicate(attiva, rec.table, mytable, rec.key, rec.key2);
|
||||
|
||||
if (mytable) {
|
||||
await this.insertIntoDb_NoDuplicate(attiva, rec.table, mytable, rec.key, rec.key2);
|
||||
} else {
|
||||
console.error('Tabella ', mytable, ' non esistente!')
|
||||
}
|
||||
}
|
||||
|
||||
console.log('FINE - popolaTabelleNuove');
|
||||
|
||||
Reference in New Issue
Block a user