- 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:
@@ -271,6 +271,8 @@ function getTableByTableName(tablename) {
|
||||
mytable = MyEvent;
|
||||
else if (tablename === 'contribtypes')
|
||||
mytable = Contribtype;
|
||||
else if (tablename === 'contribtype')
|
||||
mytable = Contribtype;
|
||||
else if (tablename === 'paymenttypes')
|
||||
mytable = PaymentType;
|
||||
else if (tablename === 'disciplines')
|
||||
@@ -864,32 +866,32 @@ router.patch('/callfunz', authenticate, async (req, res) => {
|
||||
});
|
||||
|
||||
router.get('/copyfromapptoapp/:idapporig/:idappdest', async (req, res) => {
|
||||
// const idapporig = req.params.idapporig;
|
||||
// const idappdest = req.params.idappdest;
|
||||
// if (!idapporig || !idappdest)
|
||||
// res.status(400).send();
|
||||
//
|
||||
// const mytablesstr = ['settings', 'users', 'templemail', 'contribtype'];
|
||||
//
|
||||
// try {
|
||||
// let numrectot = 0;
|
||||
// for (const table of mytablesstr) {
|
||||
// const mytable = getTableByTableName(table);
|
||||
//
|
||||
// tools.mylogshow('copyfromapptoapp: ', table, mytable);
|
||||
//
|
||||
// await mytable.DuplicateAllRecords(idapporig, idappdest).then((numrec) => {
|
||||
// // tools.mylogshow(' REC TO MODIFY: ', rec);
|
||||
// numrectot += numrec
|
||||
// });
|
||||
// }
|
||||
//
|
||||
// res.send({ code: server_constants.RIS_CODE_OK, msg: '', numrectot });
|
||||
//
|
||||
// } catch (e) {
|
||||
// tools.mylogserr('Error copyfromapptoapp: ', e);
|
||||
// res.status(400).send();
|
||||
// }
|
||||
// const idapporig = req.params.idapporig;
|
||||
// const idappdest = req.params.idappdest;
|
||||
// if (!idapporig || !idappdest)
|
||||
// res.status(400).send();
|
||||
//
|
||||
// const mytablesstr = ['settings', 'users', 'templemail'];
|
||||
//
|
||||
// try {
|
||||
// let numrectot = 0;
|
||||
// for (const table of mytablesstr) {
|
||||
// const mytable = getTableByTableName(table);
|
||||
//
|
||||
// tools.mylogshow('copyfromapptoapp: ', table, mytable);
|
||||
//
|
||||
// await mytable.DuplicateAllRecords(idapporig, idappdest).then((numrec) => {
|
||||
// // tools.mylogshow(' REC TO MODIFY: ', rec);
|
||||
// numrectot += numrec
|
||||
// });
|
||||
// }
|
||||
//
|
||||
// res.send({ code: server_constants.RIS_CODE_OK, msg: '', numrectot });
|
||||
//
|
||||
// } catch (e) {
|
||||
// tools.mylogserr('Error copyfromapptoapp: ', e);
|
||||
// res.status(400).send();
|
||||
// }
|
||||
});
|
||||
|
||||
router.delete('/delrec/:table/:id', authenticate, async (req, res) => {
|
||||
|
||||
Reference in New Issue
Block a user