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
```
This commit is contained in:
Iván Ovejero 2023-08-23 15:15:14 +02:00 committed by GitHub
parent 64b950f294
commit 8c38d85e76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,11 +65,12 @@ export class ImportWorkflowsCommand extends BaseCommand {
private transactionManager: EntityManager; private transactionManager: EntityManager;
private tagService = Container.get(TagService); private tagService: TagService;
async init() { async init() {
disableAutoGeneratedIds(WorkflowEntity); disableAutoGeneratedIds(WorkflowEntity);
await super.init(); await super.init();
this.tagService = Container.get(TagService);
} }
async run(): Promise<void> { async run(): Promise<void> {