From 496113f0820d41a7dc5b2ec9717324509e71777f Mon Sep 17 00:00:00 2001 From: shafeeqd959 Date: Fri, 6 Oct 2023 12:25:39 +0530 Subject: [PATCH 1/2] fix CS-41590 --- .../contentstack-import/src/import/modules/global-fields.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/contentstack-import/src/import/modules/global-fields.ts b/packages/contentstack-import/src/import/modules/global-fields.ts index 958ada0c17..b84ea1bbea 100644 --- a/packages/contentstack-import/src/import/modules/global-fields.ts +++ b/packages/contentstack-import/src/import/modules/global-fields.ts @@ -117,7 +117,7 @@ export default class ImportGlobalFields extends BaseClass { return new Promise(async (resolve, reject) => { lookupExtension(this.config, globalField.schema, this.config.preserveStackVersion, this.installedExtensions); let flag = { supressed: false }; - await removeReferenceFields(globalField.schema, flag, this.stackAPIClient); + await removeReferenceFields(globalField.schema, flag, this.stack); if (flag.supressed) { this.pendingGFs.push(globalField.uid); } From 8e34fa42ae56dca7470cc88749795f0860662ee4 Mon Sep 17 00:00:00 2001 From: shafeeqd959 Date: Fri, 6 Oct 2023 12:28:25 +0530 Subject: [PATCH 2/2] version bump --- packages/contentstack-import/package.json | 4 ++-- packages/contentstack/package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/contentstack-import/package.json b/packages/contentstack-import/package.json index 001d5b5000..b1b68fd411 100644 --- a/packages/contentstack-import/package.json +++ b/packages/contentstack-import/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli-cm-import", "description": "Contentstack CLI plugin to import content into stack", - "version": "1.9.1", + "version": "1.9.2", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { @@ -96,4 +96,4 @@ } }, "repository": "https://github.com/contentstack/cli" -} +} \ No newline at end of file diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index 2e0d2aa43f..a11fd3a597 100755 --- a/packages/contentstack/package.json +++ b/packages/contentstack/package.json @@ -29,7 +29,7 @@ "@contentstack/cli-cm-clone": "~1.5.1", "@contentstack/cli-cm-export": "~1.9.1", "@contentstack/cli-cm-export-to-csv": "~1.4.3", - "@contentstack/cli-cm-import": "~1.9.1", + "@contentstack/cli-cm-import": "~1.9.2", "@contentstack/cli-cm-migrate-rte": "~1.4.12", "@contentstack/cli-command": "~1.2.13", "@contentstack/cli-cm-seed": "~1.5.1", @@ -158,4 +158,4 @@ } }, "repository": "https://github.com/contentstack/cli" -} +} \ No newline at end of file