diff --git a/lib/import/content_types.js b/lib/import/content_types.js index 6cc9643..4e1956e 100755 --- a/lib/import/content_types.js +++ b/lib/import/content_types.js @@ -137,7 +137,7 @@ importContentTypes.prototype = { field_rules_ct.push(contentType.uid); delete contentType.field_rules; } - supress(contentType.schema); + supress(contentType.schema, config.preserveStackVersion); requestObject.json.content_type = contentType; return request(requestObject).then(function(response) { self.createdContentTypeUids.push(response.body.content_type.uid); diff --git a/lib/import/entries.js b/lib/import/entries.js index 080c3d2..b4f2caf 100755 --- a/lib/import/entries.js +++ b/lib/import/entries.js @@ -215,7 +215,6 @@ importEntries.prototype = { return Promise.map(batches, function(batch) { return Promise.map(batch, function(eUid) { if (createdEntries.hasOwnProperty(eUid)) { - console.log("first time") log.success('Skipping ' + JSON.stringify({ content_type: ctUid, locale: lang, @@ -227,10 +226,8 @@ importEntries.prototype = { if (lang !== masterLanguage) { self.uniqueUids[eUid] = self.uniqueUids[eUid] || {}; if (self.uniqueUids[eUid].locales) { - console.log("first") self.uniqueUids[eUid].locales.push(lang); } else { - console.log("second") self.uniqueUids[eUid].locales = [lang]; } self.uniqueUids[eUid].content_type = ctUid; diff --git a/package.json b/package.json index 4c8ace7..3f21d30 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "contentstack-import", - "version": "1.7.1", + "version": "1.7.2", "description": "Import data into Contentstack", "homepage": "https://www.contentstack.com/docs/tools-and-frameworks/content-migration/within-contentstack", "author": {