Browse Source
Merge pull request #3990 from Budibase/fix/3228
Allow access to query parameters in transformer
pull/4004/head
Michael Drury
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
1 deletions
-
packages/server/src/threads/query.js
|
|
|
@ -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() |
|
|
|
} |
|
|
|
|
|
|
|
|