소스 검색

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

Kristian Vos 2 년 전
부모
커밋
07224b8ed1
1개의 변경된 파일0개의 추가작업 그리고 5개의 파일을 삭제
  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);
 				},