Bugfix/Add orgId for file fetching from messages (#4732)

add orgId for file fetching from messages
This commit is contained in:
Henry Heng
2025-06-25 17:28:14 +01:00
committed by GitHub
parent 7a5368c6f6
commit c78b5326b6
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -343,7 +343,8 @@ export const getPastChatHistoryImageMessages = async (
const nodeOptions = {
retrieveAttachmentChatId: true,
chatflowid: options.chatflowid,
chatId: options.chatId
chatId: options.chatId,
orgId: options.orgId
}
let fileInputFieldFromMimeType = 'txtFile'
fileInputFieldFromMimeType = mapMimeTypeToInputField(upload.mime)
@@ -146,6 +146,7 @@ const buildAndInitTool = async (chatflowid: string, _chatId?: string, _apiMessag
const agent = await nodeInstance.init(nodeToExecuteData, '', {
chatflowid,
chatId,
orgId,
appDataSource: appServer.AppDataSource,
databaseEntities,
analytic: chatflow.analytic