Skip to content

Commit

Permalink
fix(core): Fix import:workflow command (n8n-io#6996)
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
ivov authored Aug 23, 2023
1 parent 64b950f commit 8c38d85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/src/commands/import/workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> {
Expand Down

0 comments on commit 8c38d85

Please sign in to comment.