File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
contentstack-export/src/export/modules
contentstack-import/src/import/modules Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ export default class ContentTypesExport extends BaseClass {
6868 if ( skip ) {
6969 this . qs . skip = skip ;
7070 }
71+ delete this . stackAPIClient . stackHeaders . api_version ;
7172 const contentTypeSearchResponse = await this . stackAPIClient . contentType ( ) . query ( this . qs ) . find ( ) ;
7273 if ( Array . isArray ( contentTypeSearchResponse . items ) && contentTypeSearchResponse . items . length > 0 ) {
7374 let updatedContentTypes = this . sanitizeAttribs ( contentTypeSearchResponse . items ) ;
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ export default class ImportGlobalFields extends BaseClass {
9595 const onSuccess = ( { response : globalField , apiData : { uid } = undefined } : any ) => {
9696 this . createdGFs . push ( globalField ) ;
9797 this . gFsUidMapper [ uid ] = globalField ;
98- log ( this . importConfig , `Global field ${ globalField . uid } created successfully` , 'success' ) ;
98+ log ( this . importConfig , `Global field ${ globalField . global_field . uid } created successfully` , 'success' ) ;
9999 } ;
100100 const onReject = ( { error, apiData : globalField = undefined } : any ) => {
101101 const uid = globalField ?. uid ;
You can’t perform that action at this time.
0 commit comments