Add library match all back updated to support v2 models

This commit is contained in:
advplyr 2022-04-20 18:05:09 -05:00
parent ff294867f8
commit 35f3b5863f
6 changed files with 60 additions and 45 deletions

View file

@ -200,6 +200,9 @@ class Db {
getLibraryItem(id) {
return this.libraryItems.find(li => li.id === id)
}
getLibraryItemsInLibrary(libraryId) {
return this.libraryItems.filter(li => li.libraryId === libraryId)
}
getPlaybackSession(id) {
return this.sessionsDb.select((pb) => pb.id == id).then((results) => {
if (results.data.length) {