소스 검색

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

KrisVos130 8 년 전
부모
커밋
61846c283f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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) => {