Skip to content

Commit c46e3d0

Browse files
committed
address pr comments
1 parent 1ec5d70 commit c46e3d0

File tree

1 file changed

+1
-1
lines changed
  • packages/runtime/src/client/crud/validator

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ export class InputValidator<Schema extends SchemaDef> {
11951195
z
11961196
.object({
11971197
set: arraySchema.optional(),
1198-
push: z.union([fieldSchema, arraySchema]).optional(),
1198+
push: z.union([fieldSchema, fieldSchema.array()]).optional(),
11991199
})
12001200
.refine(
12011201
(v) => Object.keys(v).length === 1,

0 commit comments

Comments
 (0)