Bugfix/empty vars (#4892)

* update workspaceId to vars

* fix vars and duplicated response
This commit is contained in:
Henry Heng 2025-07-17 18:32:09 +01:00 committed by GitHub
parent 8a6b95ef0e
commit 1bed5a264e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -181,7 +181,8 @@ class ExecuteFlow_Agentflow implements INode {
if (selectedFlowId === options.chatflowid) throw new Error('Cannot call the same agentflow!')
let headers: Record<string, string> = {
'Content-Type': 'application/json'
'Content-Type': 'application/json',
'flowise-tool': 'true'
}
if (chatflowApiKey) headers = { ...headers, Authorization: `Bearer ${chatflowApiKey}` }

View File

@ -87,7 +87,9 @@ export class PredictionQueue extends BaseQueue {
return await executeCustomNodeFunction({
appDataSource: this.appDataSource,
componentNodes: this.componentNodes,
data: executeCustomFunctionData.data
data: executeCustomFunctionData.data,
workspaceId: executeCustomFunctionData.workspaceId,
orgId: executeCustomFunctionData.orgId
})
}