From f268e92b0d36c033ed81827ec0866eca1018764c Mon Sep 17 00:00:00 2001 From: sd0ric4 <1286518974@qq.com> Date: Thu, 27 Mar 2025 13:31:45 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=E4=B8=8D?= =?UTF-8?q?=E5=BF=85=E8=A6=81=E7=9A=84=E5=85=A5=E5=8F=A3=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=EF=BC=8C=E7=AE=80=E5=8C=96=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- projects/app/src/pages/api/core/workflow/debug.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/projects/app/src/pages/api/core/workflow/debug.ts b/projects/app/src/pages/api/core/workflow/debug.ts index 96a095f97..3c7a54796 100644 --- a/projects/app/src/pages/api/core/workflow/debug.ts +++ b/projects/app/src/pages/api/core/workflow/debug.ts @@ -34,10 +34,6 @@ async function handler( if (!Array.isArray(edges)) { throw new Error('Edges is not array'); } - const entryNode = nodes.find((node) => node.isEntry === true); - if (!entryNode) { - throw new Error('No entry node found'); - } /* user auth */ const [{ teamId, tmbId }, { app }] = await Promise.all([