airgen-cli 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -146,8 +146,8 @@ export function registerDocumentCommands(program, client) {
|
|
|
146
146
|
.argument("<to-section-id>", "Target section ID")
|
|
147
147
|
.option("--dry-run", "Show what would be moved without executing")
|
|
148
148
|
.action(async (tenant, project, fromId, toId, opts) => {
|
|
149
|
-
// Get requirements in source section
|
|
150
|
-
const secData = await client.get(`/sections/${fromId}/requirements
|
|
149
|
+
// Get requirements in source section (tenant query param required for auth)
|
|
150
|
+
const secData = await client.get(`/sections/${fromId}/requirements`, { tenant });
|
|
151
151
|
const reqs = secData.requirements ?? [];
|
|
152
152
|
if (reqs.length === 0) {
|
|
153
153
|
console.log("Source section has no requirements.");
|