Skip to content

Commit 16d5428

Browse files
committed
update
1 parent 6981af1 commit 16d5428

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/runtime/src/client/crud/validator.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,13 +1315,13 @@ export class InputValidator<Schema extends SchemaDef> {
13151315
let result = true;
13161316
for (const [key, value] of Object.entries(val)) {
13171317
if (AGGREGATE_OPERATORS.includes(key as any)) {
1318-
continue; // aggregation field
1318+
// aggregation field
1319+
continue;
13191320
}
13201321
if (LOGICAL_COMBINATORS.includes(key as any)) {
1321-
if (!enumerate(value).every((v) => this.onlyAggregationFields(v))) {
1322-
// logical operators
1323-
result = false;
1324-
break;
1322+
// logical operators
1323+
if (enumerate(value).every((v) => this.onlyAggregationFields(v))) {
1324+
continue;
13251325
}
13261326
}
13271327
result = false;

0 commit comments

Comments
 (0)