From a9f1ce7bd6d4a822bb48870bed64926e9a2345d4 Mon Sep 17 00:00:00 2001 From: Junyi Date: Thu, 20 Jun 2024 10:36:43 +0800 Subject: [PATCH] fix(plugin-workflow): fix undefined error of action trigger (#4710) --- .../plugin-workflow-action-trigger/src/server/ActionTrigger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/ActionTrigger.ts b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/ActionTrigger.ts index 34d7bbac23..bcf2e9ef9b 100644 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/ActionTrigger.ts +++ b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/ActionTrigger.ts @@ -24,7 +24,7 @@ export default class extends Trigger { constructor(workflow: WorkflowPlugin) { super(workflow); - workflow.app.use(this.middleware, { after: 'dataSource' }); + workflow.app.dataSourceManager.use(this.middleware); } /**