fixed connection

This commit is contained in:
CHIEFSOFT\ameye
2024-02-23 17:32:57 -05:00
parent fcd2182ce4
commit c9bc3fd31c
3 changed files with 14 additions and 17 deletions
+12 -15
View File
@@ -7,14 +7,6 @@ const logger = require('../app/logger');
var jobs = {
getmarketjobs: function(req, res, next) {
var url = flutterwaveConfig.BaseApiUrl + '/v3/transfers';
var headersOpt = {
"Content-Type": "application/json",
"Authorization": "Bearer " + flutterwaveConfig.SecretKey,
};
var data = {
"account_bank": req.body.account_bank,
"account_number": req.body.account_number,
@@ -24,14 +16,19 @@ var jobs = {
logger.info(data);
// 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])
db.query("SELECT * FROM members LIMIT 10", function (err, result) {
if (err) throw err;
console.log(result);
});
// // 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])
// });
}
};