Skip to content

fix: update to correct list composers response#15

Open
jspeth wants to merge 1 commit intomjdierkes:mainfrom
jspeth:jspeth/fix-list-composers-response
Open

fix: update to correct list composers response#15
jspeth wants to merge 1 commit intomjdierkes:mainfrom
jspeth:jspeth/fix-list-composers-response

Conversation

@jspeth
Copy link
Copy Markdown

@jspeth jspeth commented Jul 27, 2025

Fixes the response handling for the list command.

The response data is no longer an array. It's a dictionary containing a composers field:

{
  "composers": [
    {
      "bcId": "...",
      "createdAtMs": 1753625549554,
      ...
    }
  ],
  "didLoadStatus": true
}

This fix adds a new type ListBackgroundComposersResponse for the response. Then in the ComposerService list function, returns the response composers.


Summary by cubic

Updated the list function in ComposerService to handle the new response format, returning the composers array from a response object instead of a raw array.

  • Types
  • Added ListBackgroundComposersResponse type to match the updated API response.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cubic analysis

No issues found across 2 files. Review in cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant