diff --git a/src/routes/project/updateProject.ts b/src/routes/project/updateProject.ts index cbad207..c317931 100644 --- a/src/routes/project/updateProject.ts +++ b/src/routes/project/updateProject.ts @@ -14,17 +14,19 @@ export default router.post( type: z.string().optional().nullable(), artStyle: z.string().optional().nullable(), videoRatio: z.string().optional().nullable(), + projectType: z.string().optional().nullable(), }), async (req, res) => { - const { id, intro, type, artStyle, videoRatio } = req.body; + const { id, intro, type, artStyle, videoRatio, projectType } = req.body; await u.db("t_project").where("id", id).update({ intro, type, artStyle, videoRatio, + projectType, }); res.status(200).send(success({ message: "修改成功" })); - } + }, );