Skip to content

Commit

Permalink
Removes unnecessary deviceIds parameter from request to transfer play…
Browse files Browse the repository at this point in the history
…back (#154)
  • Loading branch information
philnash authored and JMPerez committed Sep 4, 2017
1 parent a9d6414 commit fa60a59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/spotify-web-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -1689,6 +1689,7 @@ SpotifyWebApi.prototype = {
})
.build();

delete options.deviceIds;
this._addAccessToken(request, this.getAccessToken());
this._addBodyParameters(request, options);

Expand Down
3 changes: 1 addition & 2 deletions test/spotify-web-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -1306,8 +1306,7 @@ describe('Spotify Web API', function() {
uri.should.equal('https://api.spotify.com/v1/me/player');
JSON.parse(options.data).should.eql({
'device_ids': ['deviceId'],
'play': true,
'deviceIds' : ['deviceId']
'play': true
});
should.not.exist(options.query);
callback();
Expand Down

0 comments on commit fa60a59

Please sign in to comment.