require matching case for operators

This commit is contained in:
Ben Irvin 2023-05-22 10:27:39 +02:00
parent 6fcad7cf3e
commit eefdae1e5e

View File

@ -445,7 +445,7 @@ const convertAndSanitizeFilters = (filters, schema) => {
// Here, `key` can either be an operator or an attribute name // Here, `key` can either be an operator or an attribute name
for (const [key, value] of Object.entries(filters)) { for (const [key, value] of Object.entries(filters)) {
const attribute = get(key, schema?.attributes); const attribute = get(key, schema?.attributes);
const validKey = isOperator(key, true) || isValidSchemaAttribute(key, schema); const validKey = isOperator(key) || isValidSchemaAttribute(key, schema);
if (!validKey) { if (!validKey) {
removeOperator(key); removeOperator(key);