Bugfix/update workspaceId to vars (#4891)

update workspaceId to vars
This commit is contained in:
Henry Heng
2025-07-17 15:43:13 +01:00
committed by GitHub
parent 9839009823
commit 8a6b95ef0e
7 changed files with 21 additions and 6 deletions
@@ -750,6 +750,8 @@ export const executeFlow = async ({
rawOutput: resultText,
appDataSource,
databaseEntities,
workspaceId,
orgId,
logger
}
const customFuncNodeInstance = new nodeModule.nodeClass()
@@ -100,6 +100,7 @@ export const createFileAttachment = async (req: Request) => {
const options = {
retrieveAttachmentChatId: true,
orgId,
workspaceId,
chatflowid,
chatId
}
@@ -9,11 +9,15 @@ import { IComponentNodes } from '../Interface'
export const executeCustomNodeFunction = async ({
appDataSource,
componentNodes,
data
data,
workspaceId,
orgId
}: {
appDataSource: DataSource
componentNodes: IComponentNodes
data: any
workspaceId?: string
orgId?: string
}) => {
try {
const body = data
@@ -37,7 +41,9 @@ export const executeCustomNodeFunction = async ({
const options: ICommonObject = {
appDataSource,
databaseEntities
databaseEntities,
workspaceId,
orgId
}
const returnData = await newNodeInstance.init(nodeData, '', options)