no need to reference inreq or log

This commit is contained in:
Paul Trowbridge 2018-12-27 23:37:15 -05:00
parent a7f2e1781f
commit 6e249a0ccb

View File

@ -60,9 +60,9 @@ server.post("/source_single", bodyParser.json(), function (inReq, inRes)// remov
//assume inboud info is json array of definitions to set //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 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)"; 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); Postgres.FirstRow(sql,[JSON.stringify(inReq.body)], inRes);
}); });