Skip to content

Commit

Permalink
Merge pull request #267 from vincentkoeckerling/fix-save-tracks-request
Browse files Browse the repository at this point in the history
Fix request for User#save_tracks!
  • Loading branch information
guilhermesad authored Sep 29, 2024
2 parents b41848f + 4b23c83 commit 9a73617
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 @@ -317,8 +317,8 @@ def remove_tracks!(tracks)
def save_tracks!(tracks)
tracks_ids = tracks.map(&:id)
url = "me/tracks"
request_body = tracks_ids.inspect
User.oauth_put(@id, url, request_body)
request_body = { ids: tracks_ids }
User.oauth_put(@id, url, request_body.to_json)
tracks
end

Expand Down

0 comments on commit 9a73617

Please sign in to comment.