Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Smef committed Jun 7, 2024
1 parent 8a08505 commit c4c0f71
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion playground/server/api/todo-precog/index.post.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { z } from "zod";

const todoRequestSchema = z.object({
description: z.string().trim().min(1, "Description not long enough"), // .startsWith('todo:', 'Must start with "todo:"'),
description: z.string().trim().min(1, "Description not long enough"),
age: z.number().min(18, "Must be at least 18 years old"),
});

Expand Down
1 change: 0 additions & 1 deletion playground/server/api/todo/index.post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { z } from "zod";

const todoRequestSchema = z.object({
description: z.string().trim().min(6, "Description not long enough").startsWith("todo:", 'Must start with "todo:"'),
// .startsWith('todo:', 'Must start with "todo:"'),
});

export default defineEventHandler(async (event) => {
Expand Down

0 comments on commit c4c0f71

Please sign in to comment.