allows for sanitization of string true / false in buildQuery

This commit is contained in:
James
2020-07-30 13:39:54 -04:00
parent 1ca904f164
commit ae7583401e

View File

@@ -171,6 +171,11 @@ class ParamParser {
let formattedValue = val;
if (schemaObject && schemaObject.type === Boolean && typeof val === 'string') {
if (val.toLowerCase() === 'true') formattedValue = true;
if (val.toLowerCase() === 'false') formattedValue = false;
}
if (operator && validOperators.includes(operator)) {
switch (operator) {
case 'greater_than_equal':