mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 15:00:57 +03:00
Bugfix/empty vars (#4892)
* update workspaceId to vars * fix vars and duplicated response
This commit is contained in:
@@ -181,7 +181,8 @@ class ExecuteFlow_Agentflow implements INode {
|
|||||||
if (selectedFlowId === options.chatflowid) throw new Error('Cannot call the same agentflow!')
|
if (selectedFlowId === options.chatflowid) throw new Error('Cannot call the same agentflow!')
|
||||||
|
|
||||||
let headers: Record<string, string> = {
|
let headers: Record<string, string> = {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json',
|
||||||
|
'flowise-tool': 'true'
|
||||||
}
|
}
|
||||||
if (chatflowApiKey) headers = { ...headers, Authorization: `Bearer ${chatflowApiKey}` }
|
if (chatflowApiKey) headers = { ...headers, Authorization: `Bearer ${chatflowApiKey}` }
|
||||||
|
|
||||||
|
|||||||
@@ -87,7 +87,9 @@ export class PredictionQueue extends BaseQueue {
|
|||||||
return await executeCustomNodeFunction({
|
return await executeCustomNodeFunction({
|
||||||
appDataSource: this.appDataSource,
|
appDataSource: this.appDataSource,
|
||||||
componentNodes: this.componentNodes,
|
componentNodes: this.componentNodes,
|
||||||
data: executeCustomFunctionData.data
|
data: executeCustomFunctionData.data,
|
||||||
|
workspaceId: executeCustomFunctionData.workspaceId,
|
||||||
|
orgId: executeCustomFunctionData.orgId
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user