fix article max content

This commit is contained in:
ItsMalma
2025-12-12 12:20:56 +07:00
parent e17bbe1549
commit 6a8d89c171

View File

@@ -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(