diff --git a/index.js b/index.js index f5e862d..1d205c6 100644 --- a/index.js +++ b/index.js @@ -203,7 +203,7 @@ server.post('/swap', bodyParser.json(), function(req, res) { res.send("no body was sent"); return; } - console.log(new Date().toISOString() + "-------------------------get swap fit:------------------------------") + console.log(new Date().toISOString() + "-------------------------post swap:------------------------------") console.log(req.body); //parse the where clause into the main sql statement sql = sql.replace(new RegExp("where_clause", 'g'), w); @@ -246,7 +246,7 @@ server.post('/cust_swap', bodyParser.json(), function(req, res) { res.send("no body was sent"); return; } - console.log(new Date().toISOString() + "-------------------------get swap fit:------------------------------") + console.log(new Date().toISOString() + "-------------------------cust swap:------------------------------") console.log(req.body); //parse the where clause into the main sql statement sql = sql.replace(new RegExp("where_clause", 'g'), w); @@ -553,7 +553,7 @@ server.post('/scale_vp_sales', bodyParser.json(), function(req, res) { res.send("no body was sent"); return; } - console.log(new Date().toISOString() + "--------------------scale volume & price:-------------------"); + console.log(new Date().toISOString() + "--------------------scale volume & price sales:-------------------"); req.body.stamp = new Date().toISOString() console.log(req.body); //console.log(args); @@ -699,4 +699,4 @@ function build_where(req, c, w, d, args) { AND order_date >= least('` + req.body.stamp + "'::date,'2021-06-01')"; } return { c, w, d }; -} \ No newline at end of file +}