diff --git a/index.js b/index.js index d88fd88..1791024 100644 --- a/index.js +++ b/index.js @@ -241,7 +241,7 @@ server.get('/list_changes', bodyParser.json(), function(req, res) { console.log(new Date().toISOString() + "-------------------------list changes:------------------------------") console.log(req.body); //parse the where clause into the main sql statement - sql = sql.replace(new RegExp("replace_user", 'g'), req.body.quota_rep_descr) + sql = sql.replace(new RegExp("replace_user", 'g'), req.body.scenario.quota_rep_descr) //execute the sql and send the result console.log(sql); Postgres.FirstRow(sql, [], res)