Skip to content

Commit

Permalink
SpotifyCreate now returns created again
Browse files Browse the repository at this point in the history
  • Loading branch information
mjwsteenbergen committed Jun 30, 2024
1 parent 26e970f commit 5252da8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ApiLibs/Spotify/PlaylistService.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using ApiLibs.General;

Expand Down Expand Up @@ -71,7 +72,7 @@ public async Task AddTracksSingleCall(IEnumerable<Track> tracks, Playlist playli

public async Task AddTracksSingleCall(IEnumerable<string> tracks, string playlistId, string owner)
{
await MakeRequest<string>($"users/{owner}/playlists/{playlistId}/tracks", Call.POST, content: tracks);
await MakeRequest<string>($"users/{owner}/playlists/{playlistId}/tracks", Call.POST, content: tracks, statusCode: HttpStatusCode.Created);
}

public async Task<List<Track>> GetAllTracks(Playlist playlist)
Expand Down

0 comments on commit 5252da8

Please sign in to comment.