From 6e249a0ccbebbfa402f1dffa0280ef46ce0ddf10 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Thu, 27 Dec 2018 23:37:15 -0500 Subject: [PATCH] no need to reference inreq or log --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); });