From f332fe84ff8c5b18950f3d0605c2884bcd0eb375 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Tue, 4 Dec 2018 01:13:22 -0500 Subject: [PATCH] label column --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 85f1a06..33f3cf9 100644 --- a/server.js +++ b/server.js @@ -62,7 +62,7 @@ server.post("/source", bodyParser.json(), function (inReq, inRes)// remove body { x = inReq.body; var sql = "SELECT\ - jsonb_agg(jsonb_build_object('name',d.def->>'name')||x.message) \ + jsonb_agg(jsonb_build_object('name',d.def->>'name')||x.message) top_message \ FROM\ jsonb_array_elements($1::jsonb) d(def)\ JOIN LATERAL tps.srce_set(d.def) x(message) ON TRUE";