From 1b0f4b9f046bd09beb396503d2a2da72eb86fb6f Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Mon, 5 Apr 2021 19:03:31 +0000 Subject: [PATCH] history target is wrapped in scenario key from UI --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)