Skip to content

Commit

Permalink
Merge pull request #33 from contentstack/Hotfix-1.7.2
Browse files Browse the repository at this point in the history
Entry Reference issue Resolved
  • Loading branch information
rohitmishra209 authored Jan 19, 2021
2 parents f261a58 + 1ee966f commit 2b187aa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/import/content_types.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 0 additions & 3 deletions lib/import/entries.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 2b187aa

Please sign in to comment.