mirror of
https://github.com/strapi/strapi.git
synced 2025-10-29 17:04:13 +00:00
require matching case for operators
This commit is contained in:
parent
6fcad7cf3e
commit
eefdae1e5e
@ -445,7 +445,7 @@ const convertAndSanitizeFilters = (filters, schema) => {
|
||||
// Here, `key` can either be an operator or an attribute name
|
||||
for (const [key, value] of Object.entries(filters)) {
|
||||
const attribute = get(key, schema?.attributes);
|
||||
const validKey = isOperator(key, true) || isValidSchemaAttribute(key, schema);
|
||||
const validKey = isOperator(key) || isValidSchemaAttribute(key, schema);
|
||||
|
||||
if (!validKey) {
|
||||
removeOperator(key);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user