mirror of https://github.com/langgenius/dify.git
refactor(variable): update global variable names and types for consistency
This commit is contained in:
parent
61d8809a0f
commit
bc3421add8
|
|
@ -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,
|
||||
},
|
||||
] : []),
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
}] : []),
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in New Issue