From 85052ca36124b3a460e10f44a18988987849c2b9 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 19 Feb 2024 19:34:15 +0100 Subject: [PATCH] Fix query --- packages/server/src/threads/query.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/server/src/threads/query.ts b/packages/server/src/threads/query.ts index 1f28034f60..c159f24268 100644 --- a/packages/server/src/threads/query.ts +++ b/packages/server/src/threads/query.ts @@ -136,6 +136,7 @@ class QueryRunner { params: enrichedParameters, }) } else { + transformer = `(function(){\n${transformer}\n})();` let isolatedVm = new IsolatedVM().withContext({ data: rows, params: enrichedParameters,