From e5608be782702f9b278b0ba4ac1e81c26f45e479 Mon Sep 17 00:00:00 2001 From: Rohit Mishra Date: Fri, 19 Mar 2021 11:42:03 +0530 Subject: [PATCH] Made changes for pointer --- packages/contentstack-import/src/commands/cm/import.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/contentstack-import/src/commands/cm/import.js b/packages/contentstack-import/src/commands/cm/import.js index 2c9337679d..0286c12d63 100644 --- a/packages/contentstack-import/src/commands/cm/import.js +++ b/packages/contentstack-import/src/commands/cm/import.js @@ -13,7 +13,8 @@ const {configWithMToken, class ImportCommand extends Command { async run() { - const {flags} = this.parse(ImportCommand) + let self = this + const {flags} = self.parse(ImportCommand) const extConfig = flags.config let targetStack = flags['stack-uid'] const data = flags.data @@ -22,11 +23,11 @@ class ImportCommand extends Command { const alias = flags['management-token-alias'] const authToken = flags['auth-token'] let _authToken = credStore.get('authtoken') - let host = this.cmaHost + let host = self.cmaHost return new Promise(function (resolve, reject) { if (alias && alias !== undefined) { - let managementTokens = this.getToken(alias) + let managementTokens = self.getToken(alias) if (managementTokens && managementTokens !== undefined) { if (extConfig && extConfig !== undefined && _authToken) {