From 8c38d85e765114df03afb5e221b3d4ae4e6c0fc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Wed, 23 Aug 2023 15:15:14 +0200 Subject: [PATCH] fix(core): Fix `import:workflow` command (#6996) Ref: https://github.com/n8n-io/n8n/actions/runs/5946170960 To test: ```sh ./packages/cli/bin/n8n export:workflow --all --output=./all-workflows.json ./packages/cli/bin/n8n import:workflow --input=./all-workflows.json ``` --- packages/cli/src/commands/import/workflow.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/commands/import/workflow.ts b/packages/cli/src/commands/import/workflow.ts index 48146e958395f..5ae3a529d73b8 100644 --- a/packages/cli/src/commands/import/workflow.ts +++ b/packages/cli/src/commands/import/workflow.ts @@ -65,11 +65,12 @@ export class ImportWorkflowsCommand extends BaseCommand { private transactionManager: EntityManager; - private tagService = Container.get(TagService); + private tagService: TagService; async init() { disableAutoGeneratedIds(WorkflowEntity); await super.init(); + this.tagService = Container.get(TagService); } async run(): Promise {