From b2dcdab5b9d41fcfcab6cb2cd24064ab150aa34d Mon Sep 17 00:00:00 2001 From: Henry Heng Date: Sat, 13 Sep 2025 12:11:49 +0100 Subject: [PATCH] Chore/ChatflowID CamelCase (#5205) * add acceptVariable property to vector store metadata filter * add accepVariadd acceptVariable property to other json fields * add camelcase chatflowId to flowConfig --- packages/server/src/Interface.ts | 1 + packages/server/src/utils/buildAgentGraph.ts | 1 + packages/server/src/utils/buildAgentflow.ts | 2 ++ packages/server/src/utils/buildChatflow.ts | 1 + 4 files changed, 5 insertions(+) diff --git a/packages/server/src/Interface.ts b/packages/server/src/Interface.ts index 3ae6d04f..57dacd73 100644 --- a/packages/server/src/Interface.ts +++ b/packages/server/src/Interface.ts @@ -370,6 +370,7 @@ export interface ICustomTemplate { export interface IFlowConfig { chatflowid: string + chatflowId: string chatId: string sessionId: string chatHistory: IMessage[] diff --git a/packages/server/src/utils/buildAgentGraph.ts b/packages/server/src/utils/buildAgentGraph.ts index e79cd694..31489170 100644 --- a/packages/server/src/utils/buildAgentGraph.ts +++ b/packages/server/src/utils/buildAgentGraph.ts @@ -89,6 +89,7 @@ export const buildAgentGraph = async ({ chatId, sessionId, chatflowid, + chatflowId: chatflowid, logger, analytic, appDataSource, diff --git a/packages/server/src/utils/buildAgentflow.ts b/packages/server/src/utils/buildAgentflow.ts index c165f259..3f961a25 100644 --- a/packages/server/src/utils/buildAgentflow.ts +++ b/packages/server/src/utils/buildAgentflow.ts @@ -1011,6 +1011,7 @@ const executeNode = async ({ const chatHistory = [...pastChatHistory, ...runtimeChatHistory] const flowConfig: IFlowConfig = { chatflowid: chatflow.id, + chatflowId: chatflow.id, chatId, sessionId, apiMessageId, @@ -1094,6 +1095,7 @@ const executeNode = async ({ chatId, sessionId, chatflowid: chatflow.id, + chatflowId: chatflow.id, apiMessageId: flowConfig.apiMessageId, logger, appDataSource, diff --git a/packages/server/src/utils/buildChatflow.ts b/packages/server/src/utils/buildChatflow.ts index d396b2a8..86154778 100644 --- a/packages/server/src/utils/buildChatflow.ts +++ b/packages/server/src/utils/buildChatflow.ts @@ -480,6 +480,7 @@ export const executeFlow = async ({ const flowConfig: IFlowConfig = { chatflowid, + chatflowId: chatflow.id, chatId, sessionId, chatHistory,