mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-25 09:00:58 +03:00
add fix for backed chat message
This commit is contained in:
@@ -1077,7 +1077,7 @@ export class App {
|
||||
await this.addChatMessage(apiMessage)
|
||||
|
||||
logger.debug(`[server]: Finished running ${nodeToExecuteData.label} (${nodeToExecuteData.id})`)
|
||||
result.chatId = chatId
|
||||
if (incomingInput.chatId) result.chatId = chatId
|
||||
return res.json(result)
|
||||
} catch (e: any) {
|
||||
logger.error('[server]: Error:', e)
|
||||
|
||||
@@ -931,6 +931,7 @@ export const redactCredentialWithPasswordType = (
|
||||
export const checkMemorySessionId = (instance: any, chatId: string): string => {
|
||||
if (instance.memory && instance.memory.isSessionIdUsingChatMessageId && chatId) {
|
||||
instance.memory.sessionId = chatId
|
||||
instance.memory.chatHistory.sessionId = chatId
|
||||
}
|
||||
return instance.memory.sessionId
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user