修复bug
This commit is contained in:
parent
0f225baa62
commit
374c975216
@ -27,7 +27,7 @@ export default router.post(
|
|||||||
const assetsData = await u
|
const assetsData = await u
|
||||||
.db("o_assets")
|
.db("o_assets")
|
||||||
.leftJoin("o_image", "o_assets.imageId", "o_image.id")
|
.leftJoin("o_image", "o_assets.imageId", "o_image.id")
|
||||||
.select("o_assets.*", "o_image.filePath", "o_image.state")
|
.select("o_assets.*", "o_image.filePath", "o_image.state", "o_image.errorReason")
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
.where("o_assets.id", "in", assetIds)
|
.where("o_assets.id", "in", assetIds)
|
||||||
.whereNull("o_assets.assetsId")
|
.whereNull("o_assets.assetsId")
|
||||||
@ -35,7 +35,7 @@ export default router.post(
|
|||||||
let childAssetsData = await u
|
let childAssetsData = await u
|
||||||
.db("o_assets")
|
.db("o_assets")
|
||||||
.leftJoin("o_image", "o_assets.imageId", "o_image.id")
|
.leftJoin("o_image", "o_assets.imageId", "o_image.id")
|
||||||
.select("o_assets.*", "o_image.filePath", "o_image.state")
|
.select("o_assets.*", "o_image.filePath", "o_image.state", "o_image.errorReason")
|
||||||
.where("o_assets.projectId", projectId)
|
.where("o_assets.projectId", projectId)
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
.where("o_assets.id", "in", assetIds)
|
.where("o_assets.id", "in", assetIds)
|
||||||
|
|||||||
@ -14,7 +14,7 @@ export default router.post(
|
|||||||
videoDesc: z.string(),
|
videoDesc: z.string(),
|
||||||
}),
|
}),
|
||||||
async (req, res) => {
|
async (req, res) => {
|
||||||
const { id, prompt } = req.body;
|
const { id, prompt, videoDesc } = req.body;
|
||||||
await u.db("o_storyboard").where({ id }).update({
|
await u.db("o_storyboard").where({ id }).update({
|
||||||
prompt,
|
prompt,
|
||||||
videoDesc,
|
videoDesc,
|
||||||
|
|||||||
66
src/types/database.d.ts
vendored
66
src/types/database.d.ts
vendored
@ -1,6 +1,60 @@
|
|||||||
// @db-hash 6aa15a584eba838157eddf2458c0e260
|
// @db-hash 7af86e2bafe5cab7d175eb68cf76ed7a
|
||||||
//该文件由脚本自动生成,请勿手动修改
|
//该文件由脚本自动生成,请勿手动修改
|
||||||
|
|
||||||
|
export interface _o_storyboard_old_20260402 {
|
||||||
|
'createTime'?: number | null;
|
||||||
|
'duration'?: string | null;
|
||||||
|
'filePath'?: string | null;
|
||||||
|
'flowId'?: number | null;
|
||||||
|
'id'?: number;
|
||||||
|
'index'?: number | null;
|
||||||
|
'projectId'?: number | null;
|
||||||
|
'prompt'?: string | null;
|
||||||
|
'reason'?: string | null;
|
||||||
|
'scriptId'?: number | null;
|
||||||
|
'state'?: string | null;
|
||||||
|
'trackId'?: number | null;
|
||||||
|
}
|
||||||
|
export interface _o_storyboard_old_20260402_1 {
|
||||||
|
'createTime'?: number | null;
|
||||||
|
'duration'?: string | null;
|
||||||
|
'filePath'?: string | null;
|
||||||
|
'flowId'?: number | null;
|
||||||
|
'id'?: number;
|
||||||
|
'index'?: number | null;
|
||||||
|
'projectId'?: number | null;
|
||||||
|
'prompt'?: string | null;
|
||||||
|
'reason'?: string | null;
|
||||||
|
'scriptId'?: number | null;
|
||||||
|
'shouldGenerateImage'?: number | null;
|
||||||
|
'state'?: string | null;
|
||||||
|
'track'?: string | null;
|
||||||
|
'trackId'?: number | null;
|
||||||
|
'videoPrompt'?: string | null;
|
||||||
|
}
|
||||||
|
export interface _o_vendorConfig_old_20260401 {
|
||||||
|
'author'?: string | null;
|
||||||
|
'code'?: string | null;
|
||||||
|
'createTime'?: number | null;
|
||||||
|
'description'?: string | null;
|
||||||
|
'enableEnglish'?: number | null;
|
||||||
|
'icon'?: string | null;
|
||||||
|
'id'?: string;
|
||||||
|
'inputs'?: string | null;
|
||||||
|
'inputValues'?: string | null;
|
||||||
|
'models'?: string | null;
|
||||||
|
'name'?: string | null;
|
||||||
|
}
|
||||||
|
export interface _o_videoTrack_old_20260402 {
|
||||||
|
'id'?: number;
|
||||||
|
'projectId'?: number | null;
|
||||||
|
'prompt'?: string | null;
|
||||||
|
'reason'?: string | null;
|
||||||
|
'scriptId'?: number | null;
|
||||||
|
'selectVideoId'?: number | null;
|
||||||
|
'state'?: string | null;
|
||||||
|
'videoId'?: number | null;
|
||||||
|
}
|
||||||
export interface memories {
|
export interface memories {
|
||||||
'content': string;
|
'content': string;
|
||||||
'createTime': number;
|
'createTime': number;
|
||||||
@ -173,8 +227,11 @@ export interface o_storyboard {
|
|||||||
'prompt'?: string | null;
|
'prompt'?: string | null;
|
||||||
'reason'?: string | null;
|
'reason'?: string | null;
|
||||||
'scriptId'?: number | null;
|
'scriptId'?: number | null;
|
||||||
|
'shouldGenerateImage'?: number | null;
|
||||||
'state'?: string | null;
|
'state'?: string | null;
|
||||||
|
'track'?: string | null;
|
||||||
'trackId'?: number | null;
|
'trackId'?: number | null;
|
||||||
|
'videoDesc'?: string | null;
|
||||||
}
|
}
|
||||||
export interface o_tasks {
|
export interface o_tasks {
|
||||||
'describe'?: string | null;
|
'describe'?: string | null;
|
||||||
@ -198,6 +255,7 @@ export interface o_vendorConfig {
|
|||||||
'createTime'?: number | null;
|
'createTime'?: number | null;
|
||||||
'description'?: string | null;
|
'description'?: string | null;
|
||||||
'enable'?: number | null;
|
'enable'?: number | null;
|
||||||
|
'enableEnglish'?: number | null;
|
||||||
'icon'?: string | null;
|
'icon'?: string | null;
|
||||||
'id'?: string;
|
'id'?: string;
|
||||||
'inputs'?: string | null;
|
'inputs'?: string | null;
|
||||||
@ -216,17 +274,21 @@ export interface o_video {
|
|||||||
'videoTrackId'?: number | null;
|
'videoTrackId'?: number | null;
|
||||||
}
|
}
|
||||||
export interface o_videoTrack {
|
export interface o_videoTrack {
|
||||||
|
'duration'?: number | null;
|
||||||
'id'?: number;
|
'id'?: number;
|
||||||
'projectId'?: number | null;
|
'projectId'?: number | null;
|
||||||
'prompt'?: string | null;
|
'prompt'?: string | null;
|
||||||
'reason'?: string | null;
|
'reason'?: string | null;
|
||||||
'scriptId'?: number | null;
|
'scriptId'?: number | null;
|
||||||
'selectVideoId'?: number | null;
|
|
||||||
'state'?: string | null;
|
'state'?: string | null;
|
||||||
'videoId'?: number | null;
|
'videoId'?: number | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DB {
|
export interface DB {
|
||||||
|
"_o_storyboard_old_20260402": _o_storyboard_old_20260402;
|
||||||
|
"_o_storyboard_old_20260402_1": _o_storyboard_old_20260402_1;
|
||||||
|
"_o_vendorConfig_old_20260401": _o_vendorConfig_old_20260401;
|
||||||
|
"_o_videoTrack_old_20260402": _o_videoTrack_old_20260402;
|
||||||
"memories": memories;
|
"memories": memories;
|
||||||
"o_agentDeploy": o_agentDeploy;
|
"o_agentDeploy": o_agentDeploy;
|
||||||
"o_agentWorkData": o_agentWorkData;
|
"o_agentWorkData": o_agentWorkData;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user