From 28ee5dfbb4b5633d04178b51cde3434db62e62fb Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Wed, 7 Apr 2021 12:55:35 -0400 Subject: [PATCH] update history pull to match dev branch --- index.js | 9 --------- route_sql/list_changes.sql | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/index.js b/index.js index bdea9e1..dc2de2f 100644 --- a/index.js +++ b/index.js @@ -282,15 +282,6 @@ server.get('/list_changes', bodyParser.json(), function(req, res) { var callback = function(arg) { sql = arg; - //parse request body into a where clause - ({ c, w, d } = build_where(req, c, w, d, args)); - - - //if there was no body sent, return with nothing - if (c == 1) { - res.send("no body was sent"); - return; - } console.log(new Date().toISOString() + "-------------------------list changes:------------------------------") console.log(req.body); //parse the where clause into the main sql statement diff --git a/route_sql/list_changes.sql b/route_sql/list_changes.sql index a8f4589..b00a269 100644 --- a/route_sql/list_changes.sql +++ b/route_sql/list_changes.sql @@ -14,7 +14,7 @@ from inner join rlarp.osm_pool on id = logid WHERE - where_clause + quota_rep_descr = 'replace_user' AND tag <> 'Initial Build' group BY ol.doc->>'user'