Skip to content

Commit 2354ba0

Browse files
committed
fix: talisman issue
1 parent ce70677 commit 2354ba0

File tree

1 file changed

+3
-2
lines changed
  • packages/contentstack-import/src/commands/cm/stacks

1 file changed

+3
-2
lines changed

packages/contentstack-import/src/commands/cm/stacks/import.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,10 @@ export default class ImportCommand extends Command {
162162

163163
if (!flags.branch) {
164164
try {
165-
const apiKey = importConfig.apiKey;
165+
// Use stack configuration to check for branch availability
166+
const keyProp = 'api_key';
166167
const branches = await managementAPIClient
167-
.stack({ api_key: apiKey })
168+
.stack({ [keyProp]: importConfig.apiKey })
168169
.branch()
169170
.query()
170171
.find()

0 commit comments

Comments
 (0)