adminforth 1.0.43 → 1.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -472,7 +472,7 @@ class AdminForth {
|
|
|
472
472
|
}
|
|
473
473
|
const { limit, offset, filters, sort } = body;
|
|
474
474
|
for (const filter of (filters || [])) {
|
|
475
|
-
if (AdminForthFilterOperators
|
|
475
|
+
if (!Object.values(AdminForthFilterOperators).includes(filter.operator)) {
|
|
476
476
|
throw new Error(`Operator '${filter.operator}' is not allowed`);
|
|
477
477
|
}
|
|
478
478
|
if (!resource.columns.some((col) => col.name === filter.field)) {
|
package/index.ts
CHANGED
|
@@ -537,7 +537,7 @@ class AdminForth {
|
|
|
537
537
|
const { limit, offset, filters, sort } = body;
|
|
538
538
|
|
|
539
539
|
for (const filter of (filters || [])) {
|
|
540
|
-
if (AdminForthFilterOperators
|
|
540
|
+
if (!Object.values(AdminForthFilterOperators).includes(filter.operator)) {
|
|
541
541
|
throw new Error(`Operator '${filter.operator}' is not allowed`);
|
|
542
542
|
}
|
|
543
543
|
|