From b4afcbd47f956d0b884954660edabbc7e91963bd Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Mon, 28 Sep 2026 18:50:05 +0800 Subject: [PATCH] =?UTF-8?q?chore(=E6=B5=81=E7=A8=8B=E5=9B=BE):=20=E6=B3=A8?= =?UTF-8?q?=E6=98=8E=20flowchart/current=E3=80=81history=20=E4=B8=A4?= =?UTF-8?q?=E4=B8=AA=E6=8E=A5=E5=8F=A3=E4=B8=BA=E4=BB=80=E4=B9=88=E8=BF=98?= =?UTF-8?q?=E7=95=99=E7=9D=80=E3=80=81=E4=BB=80=E4=B9=88=E6=97=B6=E5=80=99?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E5=88=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- apps/api/src/routes/flowchart.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/api/src/routes/flowchart.ts b/apps/api/src/routes/flowchart.ts index f028cbf..2af4452 100644 --- a/apps/api/src/routes/flowchart.ts +++ b/apps/api/src/routes/flowchart.ts @@ -642,6 +642,11 @@ async function myEvaluatedFlowcharts(user: AuthUser, problemId: number) { return { visible, hidden: rows.length - visible.length } } +/* + * current / history:前端从 2026-09-28 起改用下面的 scores + GET /flowcharts/:id,不再调这两个。 + * 先留着给上线那一刻还开着旧页面的浏览器(机房里一节课都不刷新是常态),下一次清理时删掉, + * 连同契约里的 flowchartCurrentSchema / flowchartDetailSchema。 + */ flowchartRoutes.get("/problems/:id/flowchart/current", requireAuth, async (c) => { const problemId = queryInteger(c.req.param("id"), 0, { min: 1 }) const { visible } = await myEvaluatedFlowcharts(c.get("user")!, problemId)