Skip to content

Commit 0f2d0f0

Browse files
Refactor exportStackSettings call placement in start method
1 parent 7b0ad2c commit 0f2d0f0

File tree

1 file changed

+1
-1
lines changed
  • packages/contentstack-export/src/export/modules

1 file changed

+1
-1
lines changed

packages/contentstack-export/src/export/modules/stack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ export default class ExportStack extends BaseClass {
2727

2828
async start(): Promise<void> {
2929
if (isAuthenticated()) {
30-
await this.exportStackSettings();
3130
const stackData = await this.getStack();
3231
if (stackData?.org_uid) {
3332
this.exportConfig.org_uid = stackData.org_uid;
3433
this.exportConfig.sourceStackName = stackData.name;
3534
}
3635
}
36+
await this.exportStackSettings();
3737
if (!this.exportConfig.preserveStackVersion && !this.exportConfig.hasOwnProperty('master_locale')) {
3838
//fetch master locale details
3939
return this.getLocales();

0 commit comments

Comments
 (0)