refactor: 移除不必要的入口节点检查,简化调试处理逻辑

This commit is contained in:
sd0ric4
2025-03-27 13:31:45 +08:00
parent b796c17e11
commit f268e92b0d

View File

@@ -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([