Skip to content

Commit c40f933

Browse files
sweetmantechclaude
andauthored
fix: use org_id param and remove accountId from artists list (#5)
The API now derives accountId from auth (x-api-key header) and uses snake_case query params (org_id not orgId). Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f445f81 commit c40f933

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

__tests__/commands/artists.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe("artists list", () => {
5151
from: "user",
5252
});
5353

54-
expect(get).toHaveBeenCalledWith("/api/artists", { orgId: "org-123" });
54+
expect(get).toHaveBeenCalledWith("/api/artists", { org_id: "org-123" });
5555
});
5656

5757
it("prints JSON with --json flag", async () => {

src/commands/artists.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const listCommand = new Command("list")
99
.action(async (opts) => {
1010
try {
1111
const params: Record<string, string> = {};
12-
if (opts.org) params.orgId = opts.org;
12+
if (opts.org) params.org_id = opts.org;
1313
const data = await get("/api/artists", params);
1414
const artists = (data.artists as Record<string, unknown>[]) || [];
1515

0 commit comments

Comments
 (0)