This commit is contained in:
CHIEFSOFT\ameye
2024-02-23 22:15:32 -05:00
parent c9bc3fd31c
commit cd38e47e62
3 changed files with 78 additions and 25 deletions
+17 -19
View File
@@ -6,29 +6,27 @@ const logger = require('../app/logger');
var jobs = {
getmarketjobs: function(req, res, next) {
var data = {
"account_bank": req.body.account_bank,
"account_number": req.body.account_number,
"amount": req.body.amount,
"narration": req.body.narration,
};
logger.info(data);
//
// var data = {
// "account_bank": req.body.account_bank,
// "account_number": req.body.account_number,
// "amount": req.body.amount,
// "narration": req.body.narration,
// };
//
// logger.info(data);
db.query("SELECT * FROM members LIMIT 10", function (err, result) {
if (err) throw err;
console.log(result);
console.log("A****************************************************");
console.log(result.rows);
console.log("A****************************************************");
// res = result.rows;
// res = result.rows;
// console.log(res);
next(null, result.rows); // pass control to the next handler
});
// // TODO: Do we save the response in the DB? I assume: YES
// db.query('SELECT NOW()', (err, res) => {
// if (err) {
// throw err;
// }
// logger.info('time:', res.rows[0])
// });
// next(null, null); // pass control to the next handler
}
};