mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-18 06:38:31 +01:00
Update:Load playlists only when needed & remove podcast episode from playlist when deleted
This commit is contained in:
1 parent
5a9eed0a5a
commit
710a62c2af
7 files changed
+178
-23
No files matched your search
@@ -122,7 +122,7 @@ class UserController {
|
||||
// Todo: check if user is logged in and cancel streams
|
||||
|
||||
// Remove user playlists
|
||||
const userPlaylists = Database.playlists.filter(p => p.userId === user.id)
|
||||
const userPlaylists = await Database.models.playlist.getPlaylistsForUserAndLibrary(user.id)
|
||||
for (const playlist of userPlaylists) {
|
||||
await Database.removePlaylist(playlist.id)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user