Skip to content

Commit

Permalink
Fix request for User#save_tracks!
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentkoeckerling committed Sep 29, 2024
1 parent b41848f commit 4b23c83
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 4b23c83

Please sign in to comment.