From 4015cf1c0d92e3dec81a122661fc064ffab83ff8 Mon Sep 17 00:00:00 2001 From: Junyi Date: Wed, 13 Mar 2024 11:42:00 +0800 Subject: [PATCH] fix(plugin-workflow): fix duplicated triggering schedule event (#3692) --- .../server/triggers/ScheduleTrigger/DateFieldScheduleTrigger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/DateFieldScheduleTrigger.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/DateFieldScheduleTrigger.ts index 4682e7a3e..66e2e8047 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/DateFieldScheduleTrigger.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/ScheduleTrigger/DateFieldScheduleTrigger.ts @@ -358,7 +358,7 @@ export default class ScheduleTrigger { } const { collection } = workflow.config; - const event = `${collection}.afterSave`; + const event = `${collection}.afterSaveWithAssociations`; const name = getHookId(workflow, event); if (this.events.has(name)) { const listener = this.events.get(name);