Merge pull request #7018 from Budibase/fix/query-val

Quick query JOI validation fix
This commit is contained in:
Michael Drury 2022-08-01 12:35:58 +01:00 committed by GitHub
commit 709e16a582
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ exports.queryValidation = () => {
schema: Joi.object({}).required().unknown(true), schema: Joi.object({}).required().unknown(true),
transformer: OPTIONAL_STRING, transformer: OPTIONAL_STRING,
flags: Joi.object().optional(), flags: Joi.object().optional(),
}) }).unknown(true)
} }
exports.generateQueryValidation = () => { exports.generateQueryValidation = () => {
@ -46,5 +46,5 @@ exports.generateQueryPreviewValidation = () => {
transformer: OPTIONAL_STRING, transformer: OPTIONAL_STRING,
parameters: Joi.object({}).required().unknown(true), parameters: Joi.object({}).required().unknown(true),
queryId: OPTIONAL_STRING, queryId: OPTIONAL_STRING,
})) }).unknown(true))
} }