Browse Source

fix(Liked/Disliked Playlists): fixed repositioning of songs for non user-modifiable playlists

Signed-off-by: Jonathan <theflametrooper@gmail.com>
Jonathan 4 years ago
parent
commit
22c90b9d79
1 changed files with 0 additions and 11 deletions
  1. 0 11
      backend/logic/actions/playlists.js

+ 0 - 11
backend/logic/actions/playlists.js

@@ -659,17 +659,6 @@ export default {
 
 		async.waterfall(
 			[
-				// get current playlist object (before changes)
-				next =>
-					PlaylistsModule.runJob("GET_PLAYLIST", { playlistId }, this)
-						.then(playlist => next(null, playlist))
-						.catch(next),
-
-				(playlist, next) => {
-					if (!playlist.isUserModifiable) return next("Playlist cannot be modified.");
-					return next(null);
-				},
-
 				// update playlist object with each song's new position
 				next =>
 					async.each(