1
0
Fork 0
mirror of synced 2024-06-28 02:50:50 +12:00

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

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 {