mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-22 07:01:07 +03:00
Bugfix/Add orgId for file fetching from messages (#4732)
add orgId for file fetching from messages
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user