From b484f29098a3994ad0a7d40e1233994a79975d17 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 30 Sep 2022 12:30:26 +0100 Subject: [PATCH] Minor fix for #8056 - don't return the raw data for the main query execution - but still return for the builder preview. --- packages/server/src/api/controllers/query/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/server/src/api/controllers/query/index.ts b/packages/server/src/api/controllers/query/index.ts index 187f16a573..4db33c5788 100644 --- a/packages/server/src/api/controllers/query/index.ts +++ b/packages/server/src/api/controllers/query/index.ts @@ -235,6 +235,10 @@ async function execute( }) const { rows, pagination, extra } = await quotas.addQuery(runFn) + // remove the raw from execution incase transformer being used to hide data + if (extra?.raw) { + delete extra.raw + } if (opts && opts.rowsOnly) { ctx.body = rows } else {