diff --git a/server.js b/server.js index c104a90..01cad87 100644 --- a/server.js +++ b/server.js @@ -60,9 +60,9 @@ server.post("/source_single", bodyParser.json(), function (inReq, inRes)// remov //assume inboud info is json array of definitions to set server.post("/source", bodyParser.json(), function (inReq, inRes)// remove body parsing, just pass post body to the sql string build { - x = inReq.body; + //x = inReq.body; var sql = "SELECT x.message FROM tps.srce_overwrite_all($1::jsonb) x(message)"; - console.log(JSON.stringify(inReq.body)); + //console.log(JSON.stringify(inReq.body)); Postgres.FirstRow(sql,[JSON.stringify(inReq.body)], inRes); });