Skip to content

Commit

Permalink
Made changes for pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitmishra209 committed Mar 19, 2021
1 parent 3ae1893 commit e5608be
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/contentstack-import/src/commands/cm/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) {
Expand Down

0 comments on commit e5608be

Please sign in to comment.