From c42a8969c857d562f6a3f057760b0b911d378507 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Fri, 9 Feb 2024 16:55:58 +0100 Subject: [PATCH] Fix build --- packages/server/src/threads/query.ts | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/packages/server/src/threads/query.ts b/packages/server/src/threads/query.ts index 9577245aa0..6b11ce4759 100644 --- a/packages/server/src/threads/query.ts +++ b/packages/server/src/threads/query.ts @@ -127,16 +127,10 @@ class QueryRunner { // transform as required if (transformer) { - const runner = new ScriptRunner( - transformer, - { - data: rows, - params: enrichedParameters, - }, - { - parseBson: datasource.source === SourceName.MONGODB, - } - ) + const runner = new ScriptRunner(transformer, { + data: rows, + params: enrichedParameters, + }) rows = runner.execute() } @@ -158,11 +152,6 @@ class QueryRunner { return this.execute() } - // check for undefined response - if (!rows) { - rows = [] - } - // needs to an array for next step if (!Array.isArray(rows)) { rows = [rows]