Browse Source

fix(RemoveAccount): deleting your own account would delete all playlists in the database

Kristian Vos 2 years ago
parent
commit
07224b8ed1
1 changed files with 0 additions and 5 deletions
  1. 0 5
      backend/logic/actions/users.js

+ 0 - 5
backend/logic/actions/users.js

@@ -260,12 +260,7 @@ export default {
 					});
 				},
 
-				// playlists for a user's stations
 				next => {
-					playlistModel.deleteMany({ owner: session.userId }, next);
-				},
-
-				(res, next) => {
 					playlistModel.findOne({ createdBy: session.userId, displayName: "Liked Songs" }, next);
 				},