Merge pull request #8061 from Budibase/fix/8056
Don't return raw query from query execution endpoint - only from preview
This commit is contained in:
commit
22baa8574e
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue