feat: 更新依赖版本,优化用户模型构造函数和域名管理路由

This commit is contained in:
2026-02-24 01:03:56 +08:00
parent 4b8f47cea8
commit 79e07d6689
5 changed files with 55 additions and 35 deletions

View File

@@ -1,6 +1,5 @@
import { eq, desc, and, like, or } from 'drizzle-orm';
import { app, db, schema } from '../../app.ts';
import { CustomError } from '@kevisual/router';
import { filter } from '@kevisual/js-filter'
import { z } from 'zod';
app
@@ -77,7 +76,7 @@ app
const tokenUser = ctx.state.tokenUser;
const id = ctx.query.id;
if (!id) {
throw new CustomError('id is required');
ctx.throw(400, 'id is required');
}
const result = await db
.select()