diff --git a/projects/app/src/pages/api/core/workflow/debug.ts b/projects/app/src/pages/api/core/workflow/debug.ts index 2a4efee9e..9571a71f8 100644 --- a/projects/app/src/pages/api/core/workflow/debug.ts +++ b/projects/app/src/pages/api/core/workflow/debug.ts @@ -23,10 +23,7 @@ async function handler( appId, query: requestQuery, history: requestHistories - } = req.body as PostWorkflowDebugProps & { - query?: UserChatItemValueItemType[]; - history?: ChatItemType[]; - }; + } = req.body as PostWorkflowDebugProps; if (!nodes) { throw new Error('Prams Error'); @@ -42,10 +39,7 @@ async function handler( throw new Error('No entry node found'); } - const isEntryNodeInteractive = - entryNode.flowNodeType === 'formInput' || entryNode.flowNodeType === 'userSelect'; - - const histories: ChatItemType[] = isEntryNodeInteractive ? requestHistories || [] : []; + const histories: ChatItemType[] = requestHistories || []; const query: UserChatItemValueItemType[] = requestQuery || []; /* user auth */