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

Commit b625c50

Browse files
committed
update
1 parent c9f31ea commit b625c50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/orm/src/client/crud/validator

packages/orm/src/client/crud/validator/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ export class InputValidator<Schema extends SchemaDef> {
499499
}
500500

501501
// expression builder
502-
fields['$expr'] = z.custom((v) => typeof v === 'function').optional();
502+
fields['$expr'] = z.custom((v) => typeof v === 'function', { error: '"$expr" must be a function' }).optional();
503503

504504
// logical operators
505505
fields['AND'] = this.orArray(

0 commit comments

Comments
 (0)