浏览代码

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) => {