history target is wrapped in scenario key from UI

This commit is contained in:
Paul Trowbridge 2021-04-05 19:03:31 +00:00
parent a0a6a94107
commit 1b0f4b9f04

View File

@ -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)