refactor: 移除未使用注释并优化代码结构
- 移除未使用的服务器函数注释并优化代码结构
This commit is contained in:
@@ -21,7 +21,6 @@ const deleteTodoSchema = z.object({
|
||||
id: z.uuid(),
|
||||
})
|
||||
|
||||
// Server Functions - CRUD 操作
|
||||
const getTodos = createServerFn({ method: 'GET' }).handler(async () => {
|
||||
const todos = await db.query.todoTable.findMany({
|
||||
orderBy: (todos, { desc }) => [desc(todos.createdAt)],
|
||||
|
||||
Reference in New Issue
Block a user