add aggregator
This commit is contained in:
parent
8c8e8b22e4
commit
e1c30e24a2
7
index.js
7
index.js
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user