From e2daf948c18844918f48c1afee3f2557d7f4d92a Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 11 Jan 2022 11:17:35 +0000 Subject: [PATCH] Fixing #3228 - allowing access to parameters in the transformer. --- packages/server/src/threads/query.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/server/src/threads/query.js b/packages/server/src/threads/query.js index fb82d2b12f..fd04f10fb6 100644 --- a/packages/server/src/threads/query.js +++ b/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() }