refactor: 移除不必要的入口节点检查,简化调试处理逻辑
This commit is contained in:
@@ -34,10 +34,6 @@ async function handler(
|
|||||||
if (!Array.isArray(edges)) {
|
if (!Array.isArray(edges)) {
|
||||||
throw new Error('Edges is not array');
|
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 */
|
/* user auth */
|
||||||
const [{ teamId, tmbId }, { app }] = await Promise.all([
|
const [{ teamId, tmbId }, { app }] = await Promise.all([
|
||||||
|
|||||||
Reference in New Issue
Block a user