ver 1.0.19
This commit is contained in:
@@ -614,7 +614,7 @@ router.post('/gettable', authenticate, (req, res) => {
|
||||
const params = req.body;
|
||||
let idapp = req.user ? req.user.idapp : params.idapp;
|
||||
const mytable = globalTables.getTableByTableName(params.table);
|
||||
// console.log('mytable', mytable);
|
||||
//console.log('mytable', mytable);
|
||||
if (!mytable) {
|
||||
console.log(`Table ${params.table} not found`);
|
||||
return res.status(400).send({});
|
||||
@@ -628,6 +628,7 @@ router.post('/gettable', authenticate, (req, res) => {
|
||||
|
||||
|
||||
return mytable.executeQueryTable(idapp, params, req.user).then(ris => {
|
||||
// console.log('ris=', ris);
|
||||
return res.send(ris);
|
||||
|
||||
}).catch((e) => {
|
||||
|
||||
Reference in New Issue
Block a user