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
+1 -1
View File
@@ -1,2 +1,2 @@
WRENCHJOB_PORT=3033
WRENCHJOB_PORT=3000
WRENCHJOB_POSTGRE_URL='postgresql://wrenchboard:wrenchboard@10.20.30.60:5432/wrenchboard'
+1 -1
View File
@@ -10,7 +10,7 @@ services:
- ./:/app
- '/app/node_modules'
ports:
- 9086:3000
- 3033:3000
environment:
- PORT=${WRENCHJOB_PORT}
- POSTGRE_URL=${WRENCHJOB_POSTGRE_URL}
+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])
// });
}
};