Skip to content
This repository was archived by the owner on Mar 1, 2026. It is now read-only.

Commit 3042e7f

Browse files
committed
fix: undo the ORM side change since it's unrelated to the original issue
1 parent 7db9c7c commit 3042e7f

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

packages/orm/src/client/crud/dialects/base-dialect.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -448,15 +448,8 @@ export abstract class BaseCrudDialect<Schema extends SchemaDef> {
448448
}
449449

450450
private buildArrayFilter(fieldRef: Expression<any>, fieldDef: FieldDef, payload: any) {
451-
const fieldType = fieldDef.type as BuiltinType;
452-
453-
// Allow direct array payloads to mean equality on the list
454-
if (Array.isArray(payload)) {
455-
const value = this.transformPrimitive(payload, fieldType, !!fieldDef.array);
456-
return this.buildLiteralFilter(fieldRef, fieldType, this.eb.val(value));
457-
}
458-
459451
const clauses: Expression<SqlBool>[] = [];
452+
const fieldType = fieldDef.type as BuiltinType;
460453

461454
for (const [key, _value] of Object.entries(payload)) {
462455
if (_value === undefined) {

packages/server/src/api/rpc/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ export class RPCApiHandler<Schema extends SchemaDef = SchemaDef> implements ApiH
221221
}
222222

223223
private async processRequestPayload(args: any) {
224-
const { meta, ...rest } = args ?? {};
224+
const { meta, ...rest } = args;
225225
if (meta?.serialization) {
226226
try {
227227
// superjson deserialization

0 commit comments

Comments
 (0)