add aggregator

This commit is contained in:
Paul Trowbridge 2019-02-27 14:26:28 -05:00
parent 8c8e8b22e4
commit e1c30e24a2

View File

@ -133,7 +133,7 @@ server.get('/get_pool', bodyParser.json(), function (req,res) {
FROM
rlarp.osm_fcpool
WHERE
quota_rep_descr = $1
quota_rep_descr = '13025 - JAMES REGER'
GROUP BY
---------customer info-----------------
bill_cust_descr
@ -167,7 +167,10 @@ server.get('/get_pool', bodyParser.json(), function (req,res) {
,version
,iter
)
SELECT row_to_json(rows) x FROM rows`;
SELECT
json_agg(row_to_json(rows)) x
FROM
rows`;
//-----------------replace default quota_rep----------------------------------------------------
console.log(w);
Postgres.FirstRow(w,args,res)