refactor(variable): update global variable names and types for consistency

This commit is contained in:
zhsama 2025-10-29 15:53:37 +08:00
parent 61d8809a0f
commit bc3421add8
2 changed files with 4 additions and 4 deletions

View File

@ -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,
},
] : []),
]

View File

@ -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'),
}] : []),
]