From 2efa3eddea49ff402dfef6cb10874a2f5df115b4 Mon Sep 17 00:00:00 2001 From: Junyi Date: Fri, 10 Jan 2025 19:42:29 +0800 Subject: [PATCH] fix(plugin-workflow): fix logger api (#6036) --- .../@nocobase/plugin-workflow/src/locale/zh-CN.json | 10 +++++----- .../@nocobase/plugin-workflow/src/server/Plugin.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/plugins/@nocobase/plugin-workflow/src/locale/zh-CN.json b/packages/plugins/@nocobase/plugin-workflow/src/locale/zh-CN.json index 43baf66a8c..908cf0d2ff 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/locale/zh-CN.json +++ b/packages/plugins/@nocobase/plugin-workflow/src/locale/zh-CN.json @@ -143,19 +143,19 @@ "Node type": "节点类型", "Unknown node": "未知节点", "Node with unknown type will cause error. Please delete it or check plugin which provide this type.": "未知类型的节点会导致错误,请删除或检查提供该类型的插件。", - "Calculation": "运算", - "Calculation engine": "运算引擎", + "Calculation": "计算", + "Calculation engine": "计算引擎", "Basic": "基础", - "Calculation expression": "运算表达式", + "Calculation expression": "计算表达式", "Expression syntax error": "表达式语法错误", "Syntax references: ": "语法参考:", - "Calculation result": "运算结果", + "Calculation result": "计算结果", "True": "真", "False": "假", "concat": "连接", "Condition": "条件判断", "Based on boolean result of the calculation to determine whether to \"continue\" or \"exit\" the process, or continue on different branches of \"yes\" and \"no\".": - "基于运算结果的真假来决定“继续”或“退出”流程,或者在“是”与“否”的分支上分别继续。", + "基于计算结果的真假来决定“继续”或“退出”流程,或者在“是”与“否”的分支上分别继续。", "Mode": "模式", "Continue when \"Yes\"": "“是”则继续", "Branch into \"Yes\" and \"No\"": "“是”和“否”分别继续", diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/Plugin.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/Plugin.ts index 39ad6c6abf..08cedf7fc1 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/Plugin.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/Plugin.ts @@ -139,7 +139,7 @@ export default class PluginWorkflowServer extends Plugin { /** * @experimental */ - getLogger(workflowId: ID): Logger { + getLogger(workflowId: ID = 'dispatcher'): Logger { const now = new Date(); const date = `${now.getFullYear()}-${`0${now.getMonth() + 1}`.slice(-2)}-${`0${now.getDate()}`.slice(-2)}`; const key = `${date}-${workflowId}}`;