Skip to content

Commit

Permalink
fixes #229
Browse files Browse the repository at this point in the history
  • Loading branch information
marioortizmanero committed Jul 14, 2021
1 parent 4839423 commit 65ce1ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/clients/oauth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,11 @@ pub trait OAuthClient: BaseClient {
/// - playlist_id - the id of the playlist
///
/// [Reference](https://developer.spotify.com/documentation/web-api/reference/#endpoint-unfollow-playlist)
async fn playlist_unfollow(&self, playlist_id: &PlaylistId) -> ClientResult<String> {
async fn playlist_unfollow(&self, playlist_id: &PlaylistId) -> ClientResult<()> {
let url = format!("playlists/{}/followers", playlist_id.id());
self.endpoint_delete(&url, &json!({})).await
self.endpoint_delete(&url, &json!({})).await;

Ok(())
}

/// Adds tracks to a playlist.
Expand Down

0 comments on commit 65ce1ec

Please sign in to comment.