Compare commits

...

1 Commits

Author SHA1 Message Date
Henry eef999386a add orgId for file fetching from messages 2025-06-25 16:57:30 +01:00
2 changed files with 3 additions and 1 deletions

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)

View File

@ -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