From c0574dd5157c57e06371eeabdadcddcb3bc65644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=B8=85?= <2944435683> Date: Fri, 27 Mar 2026 01:14:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=88=86=E9=95=9C=E7=9A=84in?= =?UTF-8?q?dex?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/production/saveFlowData.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/routes/production/saveFlowData.ts b/src/routes/production/saveFlowData.ts index 2cd1b20..9b69a2f 100644 --- a/src/routes/production/saveFlowData.ts +++ b/src/routes/production/saveFlowData.ts @@ -14,8 +14,13 @@ export default router.post( data: flowDataSchema, }), async (req, res) => { - const { projectId, episodesId } = req.body; + const { data, projectId, episodesId } = req.body; const sqlData = await u.db("o_agentWorkData").where("projectId", String(projectId)).andWhere("episodesId", String(episodesId)).first(); + for (let item of data.storyboard) { + await u.db("o_storyboard").where("id", item.id).update({ + index: item.id, + }); + } if (!sqlData) { await u.db("o_agentWorkData").insert({ projectId,