- fixed cookie too down to the screen

- fix verified: if Telegram OK is not necessary the email verification.
- contribtype fix
This commit is contained in:
paoloar77
2022-02-12 22:12:49 +01:00
parent a71f081407
commit 621848d9d7
8 changed files with 732 additions and 341 deletions

View File

@@ -872,6 +872,33 @@ async function eseguiDbOp(idapp, mydata, locale) {
populate.rewriteTable('contribtypes');
} else if (mydata.dbop === 'copyFrom1To13') {
const idapporig = 1;
const idappdest = 13;
if (!idapporig || !idappdest)
return;
const globalTables = require('../tools/globalTables');
const mytablesstr = ['settings', 'users', 'templemail', 'contribtypes'];
try {
let numrectot = 0;
for (const table of mytablesstr) {
const mytable = globalTables.getTableByTableName(table);
tools.mylogshow('copyfromapptoapp: ', table, mytable);
await mytable.DuplicateAllRecords(idapporig, idappdest).
then((numrec) => {
// tools.mylogshow(' REC TO MODIFY: ', rec);
numrectot += numrec
});
}
}catch (e){
console.log('e', e);
}
} else if (mydata.dbop === 'emptyDbSkill') {
const {Sector} = require('../models/sector');