From dcd732db895380d6a273e4dd486d21acda2a0829 Mon Sep 17 00:00:00 2001 From: Junyi Date: Sun, 4 Feb 2024 09:49:18 +0800 Subject: [PATCH] fix(plugin-workflow): fix revision with new properties (#3487) --- .../plugin-workflow-form-trigger/src/server/FormTrigger.ts | 2 +- .../@nocobase/plugin-workflow/src/server/actions/workflows.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/plugins/@nocobase/plugin-workflow-form-trigger/src/server/FormTrigger.ts b/packages/plugins/@nocobase/plugin-workflow-form-trigger/src/server/FormTrigger.ts index 07acc6041..05e3e4718 100644 --- a/packages/plugins/@nocobase/plugin-workflow-form-trigger/src/server/FormTrigger.ts +++ b/packages/plugins/@nocobase/plugin-workflow-form-trigger/src/server/FormTrigger.ts @@ -81,7 +81,7 @@ export default class extends Trigger { let payload = row; if (trigger[1]) { const paths = trigger[1].split('.'); - for await (const field of paths) { + for (const field of paths) { if (payload.get(field)) { payload = payload.get(field); } else { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/actions/workflows.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/actions/workflows.ts index e5edb1029..f6bf94d75 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/actions/workflows.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/actions/workflows.ts @@ -73,7 +73,9 @@ export async function revision(context: Context, next) { ? { key: filter.key, title: origin.title, + triggerTitle: origin.triggerTitle, allExecuted: origin.allExecuted, + sync: origin.sync, } : values;