From bc3421add8630b61d99bdf245fd3e7b75784a639 Mon Sep 17 00:00:00 2001 From: zhsama Date: Wed, 29 Oct 2025 15:53:37 +0800 Subject: [PATCH] refactor(variable): update global variable names and types for consistency --- web/app/components/workflow/constants.ts | 4 ++-- .../components/workflow/panel/global-variable-panel/index.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/app/components/workflow/constants.ts b/web/app/components/workflow/constants.ts index 83ebcf0029..79f5816e60 100644 --- a/web/app/components/workflow/constants.ts +++ b/web/app/components/workflow/constants.ts @@ -70,8 +70,8 @@ export const getGlobalVars = (isChatMode: boolean): Var[] => { }, ...((isInWorkflow && !isChatMode) ? [ { - variable: 'sys.trigger_timestamp', - type: VarType.string, + variable: 'sys.timestamp', + type: VarType.integer, }, ] : []), ] diff --git a/web/app/components/workflow/panel/global-variable-panel/index.tsx b/web/app/components/workflow/panel/global-variable-panel/index.tsx index bcad9b52ec..6a455cf571 100644 --- a/web/app/components/workflow/panel/global-variable-panel/index.tsx +++ b/web/app/components/workflow/panel/global-variable-panel/index.tsx @@ -51,8 +51,8 @@ const Panel = () => { }, // is workflow ...((isWorkflowPage && !isChatMode) ? [{ - name: 'trigger_timestamp', - value_type: 'string' as const, + name: 'timestamp', + value_type: 'integer' as const, description: t('workflow.globalVar.fieldsDescription.triggerTimestamp'), }] : []), ]