From 71661ac746768c9c2dbf180666c58c3c21a8fb0b Mon Sep 17 00:00:00 2001 From: zhishi <1951671751@qq.com> Date: Sat, 28 Mar 2026 00:04:04 +0800 Subject: [PATCH] no message --- src/routes/setting/vendorConfig/addVendor.ts | 3 ++- src/types/database.d.ts | 16 +++++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/routes/setting/vendorConfig/addVendor.ts b/src/routes/setting/vendorConfig/addVendor.ts index a94ef02..83cf3ca 100644 --- a/src/routes/setting/vendorConfig/addVendor.ts +++ b/src/routes/setting/vendorConfig/addVendor.ts @@ -90,7 +90,8 @@ export default router.post( const errorMsg = result.error.issues.map((e) => `${e.path.join(".")}: ${e.message}`).join("; "); return res.status(400).send(error(`vendor配置校验失败: ${errorMsg}`)); } - if (vendor.id.include(":")) return res.status(400).send(error("id不能包含英文冒号")); + + if ((vendor.id as string).includes(":")) return res.status(400).send(error("id不能包含英文冒号")); await u.db("o_vendorConfig").insert({ id: vendor.id, author: vendor.author, diff --git a/src/types/database.d.ts b/src/types/database.d.ts index 69a326a..1058d67 100644 --- a/src/types/database.d.ts +++ b/src/types/database.d.ts @@ -1,12 +1,20 @@ -// @db-hash d07435d983861c95bb42e6e4742ef1c1 +// @db-hash 662752a8a62a88e2dc636b6d985d3b87 //该文件由脚本自动生成,请勿手动修改 +export interface _o_script_old_20260327 { + 'content'?: string | null; + 'createTime'?: number | null; + 'id'?: number; + 'name'?: string | null; + 'projectId'?: number | null; +} export interface memories { 'content': string; 'createTime': number; 'embedding'?: string | null; 'id'?: string; 'isolationKey': string; + 'name'?: string | null; 'relatedMessageIds'?: string | null; 'role'?: string | null; 'summarized'?: number | null; @@ -46,7 +54,6 @@ export interface o_assets { 'name'?: string | null; 'projectId'?: number | null; 'prompt'?: string | null; - 'promptState'?: string | null; 'remark'?: string | null; 'scriptId'?: number | null; 'startTime'?: number | null; @@ -121,11 +128,13 @@ export interface o_project { export interface o_prompt { 'id'?: number; 'name'?: string | null; - 'prompt'?: string | null; + 'rompt'?: string | null; } export interface o_script { 'content'?: string | null; 'createTime'?: number | null; + 'errorReason'?: string | null; + 'extractState'?: number | null; 'id'?: number; 'name'?: string | null; 'projectId'?: number | null; @@ -227,6 +236,7 @@ export interface o_videoConfig { } export interface DB { + "_o_script_old_20260327": _o_script_old_20260327; "memories": memories; "o_agentDeploy": o_agentDeploy; "o_agentWorkData": o_agentWorkData;