Update packages/core/utils/lib/convert-query-params.js

Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
This commit is contained in:
Ben Irvin 2023-05-12 16:49:09 +02:00 committed by GitHub
parent 00f43de9b7
commit cb0225e316
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -410,15 +410,11 @@ const isValidSchemaAttribute = (key, schema) => {
// case insensitive check if the attribute exists in the schema
const findAttribute = key.toLowerCase();
if (
return (
Object.keys(schema.attributes)
.map((attributeName) => attributeName.toLowerCase())
.includes(findAttribute)
) {
return true;
}
return false;
);
};
const convertFiltersQueryParams = (filters, schema) => {