Minor fix for #8056 - don't return the raw data for the main query execution - but still return for the builder preview.

This commit is contained in:
mike12345567 2022-09-30 12:30:26 +01:00
parent cd13226490
commit b484f29098
1 changed files with 4 additions and 0 deletions

View File

@ -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 {