Skip to content

Commit 2af9ad0

Browse files
committed
fix knowledge not saving
1 parent c1c7c60 commit 2af9ad0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/web/utils/actions/knowledge.validation.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ import { z } from "zod";
22

33
export const createKnowledgeBody = z.object({
44
title: z.string().min(1, "Title is required"),
5-
content: z.string().min(1, "Content is required"),
5+
content: z.string(),
66
});
77

88
export type CreateKnowledgeBody = z.infer<typeof createKnowledgeBody>;
99

1010
export const updateKnowledgeBody = z.object({
1111
id: z.string(),
1212
title: z.string().min(1, "Title is required"),
13-
content: z.string().min(1, "Content is required"),
13+
content: z.string(),
1414
});
1515

1616
export type UpdateKnowledgeBody = z.infer<typeof updateKnowledgeBody>;

0 commit comments

Comments
 (0)