diff --git a/src/modules/spotify.ts b/src/modules/spotify.ts index 85a49ba..45da341 100644 --- a/src/modules/spotify.ts +++ b/src/modules/spotify.ts @@ -205,7 +205,7 @@ export async function removeTracks(token: string, tracks: IDs): Promise { 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',