Bugfix/Add orgId for file fetching from messages (#4732)
add orgId for file fetching from messages
This commit is contained in:
parent
7a5368c6f6
commit
c78b5326b6
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue