Merge pull request #3990 from Budibase/fix/3228

Allow access to query parameters in transformer
This commit is contained in:
Michael Drury 2022-01-11 13:11:44 +00:00 committed by GitHub
commit a508850e7e
1 changed files with 4 additions and 1 deletions

View File

@ -46,7 +46,10 @@ class QueryRunner {
// transform as required
if (transformer) {
const runner = new ScriptRunner(transformer, { data: rows })
const runner = new ScriptRunner(transformer, {
data: rows,
params: parameters,
})
rows = runner.execute()
}