Ver Fonte

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

Kristian Vos há 2 anos atrás
pai
commit
07224b8ed1
1 ficheiros alterados com 0 adições e 5 exclusões
  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);
 				},