refactor: 移除未使用注释并优化代码结构

- 移除未使用的服务器函数注释并优化代码结构
This commit is contained in:
2026-01-17 03:23:40 +08:00
parent 8b058fd40a
commit f9e3af2291

View File

@@ -21,7 +21,6 @@ const deleteTodoSchema = z.object({
id: z.uuid(), id: z.uuid(),
}) })
// Server Functions - CRUD 操作
const getTodos = createServerFn({ method: 'GET' }).handler(async () => { const getTodos = createServerFn({ method: 'GET' }).handler(async () => {
const todos = await db.query.todoTable.findMany({ const todos = await db.query.todoTable.findMany({
orderBy: (todos, { desc }) => [desc(todos.createdAt)], orderBy: (todos, { desc }) => [desc(todos.createdAt)],