diff --git a/package-lock.json b/package-lock.json index 2f22ccea81..6a86eb0da1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23139,8 +23139,8 @@ "@contentstack/cli-cm-bulk-publish": "~1.3.11", "@contentstack/cli-cm-clone": "~1.4.17", "@contentstack/cli-cm-export": "~1.8.1", - "@contentstack/cli-cm-import": "~1.8.4", "@contentstack/cli-cm-export-to-csv": "~1.4.2", + "@contentstack/cli-cm-import": "~1.8.4", "@contentstack/cli-cm-migrate-rte": "~1.4.11", "@contentstack/cli-cm-seed": "~1.4.16", "@contentstack/cli-command": "~1.2.12", @@ -26546,8 +26546,8 @@ "@contentstack/cli-cm-bulk-publish": "~1.3.11", "@contentstack/cli-cm-clone": "~1.4.17", "@contentstack/cli-cm-export": "~1.8.1", - "@contentstack/cli-cm-import": "~1.8.4", "@contentstack/cli-cm-export-to-csv": "~1.4.2", + "@contentstack/cli-cm-import": "~1.8.4", "@contentstack/cli-cm-migrate-rte": "~1.4.11", "@contentstack/cli-cm-seed": "~1.4.16", "@contentstack/cli-command": "~1.2.12", diff --git a/packages/contentstack-import/src/import/modules-js/workflows.js b/packages/contentstack-import/src/import/modules-js/workflows.js index 4bc51dfb82..2db53ac514 100644 --- a/packages/contentstack-import/src/import/modules-js/workflows.js +++ b/packages/contentstack-import/src/import/modules-js/workflows.js @@ -189,7 +189,11 @@ module.exports = class importWorkflows { }); const updateWorkflow = this.stackAPIClient.workflow(workflow.uid); - Object.assign(updateWorkflow, { workflow_stages: newWorkflowStages, name: workflow.name }); + Object.assign(updateWorkflow, { + name: workflow.name, + branches: workflow.branches, + workflow_stages: newWorkflowStages, + }); return updateWorkflow.update(); } }; diff --git a/packages/contentstack-import/src/import/modules/workflows.ts b/packages/contentstack-import/src/import/modules/workflows.ts index b4f4db4a0b..d7ba380ea7 100644 --- a/packages/contentstack-import/src/import/modules/workflows.ts +++ b/packages/contentstack-import/src/import/modules/workflows.ts @@ -185,7 +185,11 @@ export default class ImportWorkflows extends BaseClass { }); const updateWorkflow = this.stack.workflow(workflow.uid); - Object.assign(updateWorkflow, { workflow_stages: newWorkflowStages, name: workflow.name }); + Object.assign(updateWorkflow, { + name: workflow.name, + branches: workflow.branches, + workflow_stages: newWorkflowStages, + }); return updateWorkflow.update(); }