fix article max content
This commit is contained in:
@@ -16,10 +16,7 @@ export const articleRequestSchema = z.object({
|
|||||||
"Must be array.",
|
"Must be array.",
|
||||||
)
|
)
|
||||||
.nonempty("Must not empty."),
|
.nonempty("Must not empty."),
|
||||||
content: z
|
content: z.string("Must be string.").nonempty("Must not empty."),
|
||||||
.string("Must be string.")
|
|
||||||
.nonempty("Must not empty.")
|
|
||||||
.max(100, "Max 100 characters."),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export const articleQuerySchema = z.intersection(
|
export const articleQuerySchema = z.intersection(
|
||||||
|
|||||||
Reference in New Issue
Block a user