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:
Michael Drury 2022-10-03 09:51:26 +01:00 committed by GitHub
commit 22baa8574e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) 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 {