Skip to content

Commit

Permalink
Merge pull request #269 from dildal/fix-save-albums
Browse files Browse the repository at this point in the history
Fix request for User#save_albums
  • Loading branch information
guilhermesad authored Oct 3, 2024
2 parents 6cdc03a + 24824b6 commit 0ac4eb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rspotify/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ def remove_albums!(albums)
def save_albums!(albums)
albums_ids = albums.map(&:id)
url = "me/albums"
request_body = albums_ids.inspect
User.oauth_put(@id, url, request_body)
request_body = { ids: albums_ids }
User.oauth_put(@id, url, request_body.to_json)
albums
end

Expand Down

0 comments on commit 0ac4eb2

Please sign in to comment.