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:
parent
cd13226490
commit
b484f29098
|
@ -235,6 +235,10 @@ async function execute(
|
||||||
})
|
})
|
||||||
|
|
||||||
const { rows, pagination, extra } = await quotas.addQuery(runFn)
|
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) {
|
if (opts && opts.rowsOnly) {
|
||||||
ctx.body = rows
|
ctx.body = rows
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue