Skip to content

fix: correct code_artist_number field mapping in getAlbumFromDB#169

Closed
jakebromberg wants to merge 2 commits into
mainfrom
fix/7-code-artist-number
Closed

fix: correct code_artist_number field mapping in getAlbumFromDB#169
jakebromberg wants to merge 2 commits into
mainfrom
fix/7-code-artist-number

Conversation

@jakebromberg

Copy link
Copy Markdown
Member

Summary

  • code_artist_number was mapped to artists.code_letters instead of artists.code_artist_number
  • Every GET /library/info response returned the wrong data type for this field

Test plan

  • Unit test verifying the correct column is selected

Made with Cursor

The code_artist_number field was mapped to artists.code_letters (a string)
instead of artists.code_artist_number (an integer), returning wrong data.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jakebromberg jakebromberg force-pushed the fix/7-code-artist-number branch from be8f624 to 9590b46 Compare February 27, 2026 05:55
@jakebromberg

Copy link
Copy Markdown
Member Author

Closing: the artists table no longer has a code_artist_number column. The field now correctly maps to genre_artist_crossreference.artist_genre_code on main, making this fix obsolete.

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.

2 participants