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-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); } diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index b98ff0ca7a..85deadb9f8 100755 --- a/packages/contentstack/package.json +++ b/packages/contentstack/package.json @@ -30,7 +30,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-cm-seed": "~1.5.1", "@contentstack/cli-command": "~1.2.13", @@ -160,4 +160,4 @@ } }, "repository": "https://github.com/contentstack/cli" -} +} \ No newline at end of file