Browse Source

Fixed issue where you couldn't remove songs from a playlist.

KrisVos130 8 years ago
parent
commit
61846c283f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      backend/logic/actions/playlists.js

+ 1 - 1
backend/logic/actions/playlists.js

@@ -360,7 +360,7 @@ let lib = {
 
 			(playlist, next) => {
 				if (!playlist || playlist.createdBy !== userId) return next('Playlist not found');
-				db.models.playlist.update({_id: playlistId}, {$pull: {songs: {_id: songId}}}, next);
+				db.models.playlist.update({_id: playlistId}, {$pull: {songs: {songId: songId}}}, next);
 			},
 
 			(res, next) => {