Skip to content

Commit

Permalink
fromatting and audit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cs-raj committed Feb 16, 2024
1 parent ae5d111 commit 9f12882
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 24 deletions.
50 changes: 31 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions packages/contentstack-import/src/import/modules/base-class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,16 @@ export default abstract class BaseClass {
.then(onSuccess)
.catch(onReject);
case 'update-extensions':
if(!apiData.uid) return Promise.resolve();;
return this.stack.extension(apiData.uid).fetch().then((extension) => {
extension.scope = apiData.scope
return extension.update()
}).then(onSuccess).catch(onReject);
if (!apiData.uid) return Promise.resolve();
return this.stack
.extension(apiData.uid)
.fetch()
.then((extension) => {
extension.scope = apiData.scope;
return extension.update();
})
.then(onSuccess)
.catch(onReject);
case 'create-locale':
return this.stack
.locale()
Expand Down

0 comments on commit 9f12882

Please sign in to comment.