Skip to content

Commit

Permalink
Fix removeTracks request
Browse files Browse the repository at this point in the history
  • Loading branch information
reimertz authored Nov 19, 2024
1 parent d750fa6 commit f83c525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/spotify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export async function removeTracks(token: string, tracks: IDs): Promise<void> {
const ids = Array.isArray(tracks) ? tracks : [tracks];

await fetch(`https://api.spotify.com/v1/me/tracks`, {
body: JSON.stringify(ids),
body: JSON.stringify({ids}),
headers: {
Authorization: `Bearer ${token}`,
'Content-Type': 'application/json',
Expand Down

0 comments on commit f83c525

Please sign in to comment.