We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce70677 commit 2354ba0Copy full SHA for 2354ba0
packages/contentstack-import/src/commands/cm/stacks/import.ts
@@ -162,9 +162,10 @@ export default class ImportCommand extends Command {
162
163
if (!flags.branch) {
164
try {
165
- const apiKey = importConfig.apiKey;
+ // Use stack configuration to check for branch availability
166
+ const keyProp = 'api_key';
167
const branches = await managementAPIClient
- .stack({ api_key: apiKey })
168
+ .stack({ [keyProp]: importConfig.apiKey })
169
.branch()
170
.query()
171
.find()
0 commit comments